FROM nginx:1.27-alpine COPY dist/ /usr/share/nginx/html/ COPY nginx.conf /etc/nginx/conf.d/default.conf RUN sed -i '/listen.*80/a\ server_name _;' /etc/nginx/conf.d/default.conf || true EXPOSE 80 HEALTHCHECK --interval=30s --timeout=3s --start-period=10s \ CMD wget -q --spider http://127.0.0.1/ || exit 1