diff --git a/Dockerfile b/Dockerfile index 384a229..1e3c2e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ COPY . . # Build React app RUN npm run build - # ---------- Production stage ---------- FROM nginx:alpine @@ -26,6 +25,7 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf # Copy build output COPY --from=build /app/dist /usr/share/nginx/html -EXPOSE 3000 +# Expose standard nginx port +EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] diff --git a/nginx.conf b/nginx.conf index 14b118a..3aa17e6 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,5 +1,5 @@ server { - listen 3000; + listen 80; server_name _; root /usr/share/nginx/html;