do not start apache if user specifies a command

This commit is contained in:
Sameer Naik 2015-09-30 21:30:02 +05:30
parent 228c72eea6
commit 720912dab1
2 changed files with 8 additions and 1 deletions

View File

@ -14,4 +14,4 @@ COPY rootfs/ /
EXPOSE 80 443
VOLUME ["$BITNAMI_APP_VOL_PREFIX/conf", "$BITNAMI_APP_VOL_PREFIX/logs", "/app"]
ENTRYPOINT ["/init"]
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -0,0 +1,7 @@
#!/bin/bash
if [ -n "${1}" ]; then
touch /etc/services.d/$BITNAMI_APP_NAME/down
fi
exec /init "$@"