Skip to content

Commit

Permalink
Add NODE_ENV environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Mar 12, 2023
1 parent dcbe453 commit a5eb09a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ FROM node:19.7-alpine3.17 AS server
RUN apk update && apk add --no-cache git ca-certificates
WORKDIR /build

ENV NODE_ENV=production

COPY .yarn/ /build/.yarn
COPY server/package.json .
COPY server/yarn.lock .
Expand All @@ -53,6 +55,8 @@ FROM node:19.7-alpine3.17
RUN apk update && apk add --no-cache ca-certificates bash tini
WORKDIR /app/noel/site

ENV NODE_ENV=production

COPY --from=server /build/tcp-transport.js /app/noel/site/tcp-transport.js
COPY --from=server /build/node_modules /app/noel/site/node_modules
COPY --from=server /build/transport.js /app/noel/site/transport.js
Expand Down

0 comments on commit a5eb09a

Please sign in to comment.