FROM nginx:alpine # Remove default config RUN rm /etc/nginx/conf.d/default.conf # Copy custom nginx config COPY nginx.conf /etc/nginx/conf.d/default.conf # Copy static files COPY index.html /usr/share/nginx/html/index.html COPY style.css /usr/share/nginx/html/style.css EXPOSE 8070 HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ CMD wget -qO- http://localhost/ || exit 1