fix: Docker compatibility

This commit is contained in:
Danny 2026-01-06 15:08:27 -06:00
parent 3cfdde809a
commit 461a989bb2
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,6 @@ COPY . .
# Build React app # Build React app
RUN npm run build RUN npm run build
# ---------- Production stage ---------- # ---------- Production stage ----------
FROM nginx:alpine FROM nginx:alpine
@ -26,6 +25,7 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy build output # Copy build output
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 3000 # Expose standard nginx port
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]

View File

@ -1,5 +1,5 @@
server { server {
listen 3000; listen 80;
server_name _; server_name _;
root /usr/share/nginx/html; root /usr/share/nginx/html;