Skip to content

Commit

Permalink
ci: seed db on build
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa committed Jul 17, 2024
1 parent 04ec95a commit 0ac612a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ RUN php artisan event:cache
RUN php artisan route:cache
RUN php artisan view:cache
RUN php artisan optimize

COPY --chown=nobody ./entrypoint.sh ./
CMD ["./entrypoint.sh"]
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

php artisan db:migrate --force --seed --no-interaction --isolated
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf

0 comments on commit 0ac612a

Please sign in to comment.