Adding simple HEALTHCHECK to Dockerfile. Fixing EXPOSE with proper port.

This commit is contained in:
Alexey Skobkin 2022-07-10 23:21:38 +03:00
parent bc232dc2a7
commit c8fe6ec22c
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7

View file

@ -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"]