Skip to content

Commit

Permalink
fix: fix nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
msm1984 committed Aug 28, 2024
1 parent c3bfab7 commit e84efcd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,30 @@ RUN npm ci
RUN npm run build


FROM nginx:latest as nginx
#FROM nginx:latest as nginx

COPY nginx.conf /etc/nginx/nginx.conf
#COPY nginx.conf /etc/nginx/nginx.conf

# Copy static assets from the build
COPY --from=build /app/dist/project/browser/ /usr/share/nginx/html/
#COPY --from=build /app/dist/project/browser/ /usr/share/nginx/html/



# Stage 4: Server
#FROM base AS server
FROM base AS server

#WORKDIR /app
WORKDIR /app

# Copy the compiled server-side application from the build stage
#COPY --from=build /app/dist/project/ /app/dist/
COPY --from=build /app/dist/project/ /app/dist/

# Install only production dependencies
#COPY /project/package*.json ./
#RUN npm ci --only=production
COPY /project/package*.json ./
RUN npm ci --only=production

#EXPOSE 4000
EXPOSE 4000

# Start the Node.js server to handle SSR
#CMD ["node", "dist/server/server.mjs"]
CMD ["node", "dist/server/server.mjs"]


0 comments on commit e84efcd

Please sign in to comment.