FROM nginx:1.25-alpine RUN rm -rf /usr/share/nginx/html/* COPY index.html /usr/share/nginx/html/index.html COPY nginx.conf /etc/nginx/conf.d/default.conf RUN chmod 644 /usr/share/nginx/html/index.html HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD wget -qO- http://127.0.0.1/health || exit 1 EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]