castopod/docker/production/web-server/Dockerfile
Romain de Laage 0c0730be69 build(docker): add production-ready DockerFiles
- add docker images for app (castopod) and web-server (nginx)
- ci: deploy images continuously to a docker hub using kaniko
- ci: trigger docker-build-rolling on develop branch
- move development DockerFile to docker directory

closes #200
2022-06-26 12:03:22 +00:00

21 lines
433 B
Docker

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 && \
apk add --no-cache curl
HEALTHCHECK --interval=30s --timeout=3s CMD curl --fail http://localhost || exit 1
COPY docker/production/web-server/nginx.conf /etc/nginx/nginx.conf
COPY castopod/public /var/www/html
CMD ["/entrypoint.sh"]