FROM nginx:alpine as adelie COPY static/ /usr/share/nginx/html/ COPY nginx.conf /etc/nginx/nginx.conf COPY docker-entrypoint.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/docker-entrypoint.sh EXPOSE 80 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD wget --quiet --tries=1 --spider http://localhost/ || exit 1 ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]