Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
saranshbalyan-1234 committed Sep 18, 2024
1 parent 7ace137 commit 923091a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:20 AS build-env
COPY . /app
WORKDIR /app
ENV NODE_ENV production
ENV NODE_ENV=production
RUN npm ci

FROM gcr.io/distroless/nodejs20-debian12
COPY --from=build-env /app /app
WORKDIR /app
ENV PORT 8080
ENV NODE_ENV production
ENV PORT=8080
ENV NODE_ENV=production
EXPOSE 8080
CMD ["index.js"]

0 comments on commit 923091a

Please sign in to comment.