Adding simple HEALTHCHECK to Dockerfile. Fixing EXPOSE with proper port.
This commit is contained in:
parent
bc232dc2a7
commit
c8fe6ec22c
|
@ -34,8 +34,10 @@ RUN apk update && \
|
||||||
chmod +x /app/bin/console && \
|
chmod +x /app/bin/console && \
|
||||||
/usr/local/bin/composer install --no-dev --no-progress --no-interaction --optimize-autoloader
|
/usr/local/bin/composer install --no-dev --no-progress --no-interaction --optimize-autoloader
|
||||||
|
|
||||||
EXPOSE 80/tcp
|
EXPOSE 8080/tcp
|
||||||
|
|
||||||
VOLUME /var/log
|
VOLUME /var/log
|
||||||
|
|
||||||
|
HEALTHCHECK --retries=3 --timeout=10s CMD curl http://localhost:8080 || exit 1
|
||||||
|
|
||||||
CMD ["/app/bin/rr", "serve"]
|
CMD ["/app/bin/rr", "serve"]
|
||||||
|
|
Loading…
Reference in a new issue