fixed container entrypoint

This commit is contained in:
pushrbx 2022-08-17 20:39:43 +01:00
parent 7fd91ef011
commit 699b93fc19
2 changed files with 10 additions and 3 deletions

View File

@ -53,7 +53,9 @@ RUN set -ex \
&& composer dump-autoload -n --optimize \
&& chmod -R 777 ${COMPOSER_HOME}/cache \
&& chmod -R a+w storage/ \
&& chown -R jikanapi:jikanapi /app
&& chown -R jikanapi:jikanapi /app \
&& chmod +x docker-entrypoint.php \
&& chmod +x docker-entrypoint.sh
EXPOSE 8080
EXPOSE 2114

View File

@ -1,10 +1,15 @@
#!/bin/bash
set -eo pipefail
status=0
if [[ $# -eq 0 ]] ; then
exec php /app/docker-entrypoint.php
php /app/docker-entrypoint.php
status=$?
else
exec php /app/docker-entrypoint.php "$@"
php /app/docker-entrypoint.php "$@"
status=$?
fi
[[ $status -ne 0 ]] && exit $status
exec rr serve -c .rr.yaml