mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
fixed container entrypoint
This commit is contained in:
parent
7fd91ef011
commit
699b93fc19
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user