FROM nginx:1.25-alpine COPY nginx.conf /etc/nginx/nginx.conf COPY public/ /usr/share/nginx/html/ RUN chown -R nginx:nginx /usr/share/nginx/html \ && chmod -R 755 /usr/share/nginx/html HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD wget --no-verbose --tries=1 --spider http://localhost/ || exit 1 EXPOSE 80 USER nginx CMD ["nginx", "-g", "daemon off;"]