2022-06-26 12:03:22 +00:00
|
|
|
FROM docker.io/nginx:1.21-alpine
|
|
|
|
|
|
|
|
VOLUME /var/www/html/media
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
|
|
|
COPY docker/production/web-server/entrypoint.sh /entrypoint.sh
|
|
|
|
|
|
|
|
RUN chmod +x /entrypoint.sh && \
|
2023-05-05 15:46:40 +02:00
|
|
|
apk add --no-cache curl gettext
|
2022-06-26 12:03:22 +00:00
|
|
|
|
|
|
|
HEALTHCHECK --interval=30s --timeout=3s CMD curl --fail http://localhost || exit 1
|
|
|
|
|
2023-05-05 15:46:40 +02:00
|
|
|
COPY docker/production/web-server/nginx.template.conf /nginx.template.conf
|
2022-06-26 12:03:22 +00:00
|
|
|
|
|
|
|
COPY castopod/public /var/www/html
|
|
|
|
|
|
|
|
CMD ["/entrypoint.sh"]
|