Skip to content

Commit

Permalink
using NODE_ENV production in production dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Yooooomi committed Nov 2, 2023
1 parent d0d57b9 commit b1a62b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ FROM node:16-alpine AS final

WORKDIR /app

ARG NODE_ENV
ENV NODE_ENV ${NODE_ENV:-production}

RUN npm install -g serve

COPY --from=builder /app/scripts/ /app/scripts/
Expand Down
3 changes: 3 additions & 0 deletions server/Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ FROM node:16-alpine AS final

WORKDIR /app

ARG NODE_ENV
ENV NODE_ENV ${NODE_ENV:-production}

RUN apk add python3 gcc g++ make cmake

COPY --from=builder /app/scripts/ /app/scripts/
Expand Down

0 comments on commit b1a62b7

Please sign in to comment.