fix: bad path in dockerfile copy, chore: cleanup
This commit is contained in:
@@ -11,7 +11,7 @@ RUN install-php-extensions \
|
||||
opcache
|
||||
|
||||
COPY . /app
|
||||
COPY --chmod=775 ./bash/entrypoint.sh /usr/local/bin/docker-entrypoint
|
||||
COPY --chmod=775 docker/app/entrypoint.sh /usr/local/bin/docker-entrypoint
|
||||
COPY docker/app/Caddyfile /etc/frankenphp/Caddyfile
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/docker-entrypoint" ]
|
||||
|
||||
12
docker/app/entrypoint.sh
Normal file
12
docker/app/entrypoint.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Sleep for a second to ensure DB is awake and ready
|
||||
SLEEP_TIME=$(shuf -i 2-4 -n 1)
|
||||
echo "> Sleeping for ${SLEEP_TIME} seconds to wait for the database"
|
||||
sleep $SLEEP_TIME
|
||||
|
||||
# Provision database
|
||||
php /app/bin/console doctrine:migrations:migrate --no-interaction
|
||||
php /app/bin/console db:seed
|
||||
|
||||
exec docker-php-entrypoint "$@"
|
||||
@@ -1,9 +0,0 @@
|
||||
[program:messenger-consume]
|
||||
command=php /var/www/bin/console messenger:consume async --time-limit=3600
|
||||
user=nobody
|
||||
numprocs=2
|
||||
startsecs=0
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startretries=10
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
Reference in New Issue
Block a user