Skip to content

Commit a5eb09a

Browse files
committed
Add NODE_ENV environment variable
1 parent dcbe453 commit a5eb09a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ FROM node:19.7-alpine3.17 AS server
3939
RUN apk update && apk add --no-cache git ca-certificates
4040
WORKDIR /build
4141

42+
ENV NODE_ENV=production
43+
4244
COPY .yarn/ /build/.yarn
4345
COPY server/package.json .
4446
COPY server/yarn.lock .
@@ -53,6 +55,8 @@ FROM node:19.7-alpine3.17
5355
RUN apk update && apk add --no-cache ca-certificates bash tini
5456
WORKDIR /app/noel/site
5557

58+
ENV NODE_ENV=production
59+
5660
COPY --from=server /build/tcp-transport.js /app/noel/site/tcp-transport.js
5761
COPY --from=server /build/node_modules /app/noel/site/node_modules
5862
COPY --from=server /build/transport.js /app/noel/site/transport.js

0 commit comments

Comments
 (0)