Skip to content

Commit 86aebaa

Browse files
authored
fix: include missing NODE_ENV (#1310)
fix: replace yarn start command with pure node to reduce memory consumption
1 parent 475ee6f commit 86aebaa

File tree

12 files changed

+36
-12
lines changed

12 files changed

+36
-12
lines changed

modules/authentication/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ RUN apk update && \
1313

1414
WORKDIR /app/modules/authentication
1515

16+
ENV NODE_ENV production
17+
1618
ENV CONDUIT_SERVER conduit_server
1719

1820
ENV SERVICE_URL 0.0.0.0:5000
1921
ENV GRPC_PORT 5000
2022

2123
EXPOSE 5000
2224

23-
CMD ["yarn", "start"]
25+
CMD ["node", "dist/index.js"]

modules/authorization/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ RUN apk update && \
1212

1313
WORKDIR /app/modules/authorization
1414

15+
ENV NODE_ENV production
16+
1517
ENV CONDUIT_SERVER conduit_server
1618

1719
ENV SERVICE_IP 0.0.0.0:5000
@@ -20,4 +22,4 @@ ENV REGISTER_NAME true
2022

2123
EXPOSE 5000
2224

23-
CMD ["yarn", "start"]
25+
CMD ["node", "dist/index.js"]

modules/chat/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ RUN yarn install --production --pure-lockfile --non-interactive && yarn cache cl
88

99
WORKDIR /app/modules/chat
1010

11+
ENV NODE_ENV production
12+
1113
ENV CONDUIT_SERVER conduit_server
1214

1315
ENV SERVICE_URL 0.0.0.0:5000
@@ -16,4 +18,4 @@ ENV GRPC_PORT 5000
1618

1719
EXPOSE 5000
1820

19-
CMD ["yarn", "start"]
21+
CMD ["node", "dist/index.js"]

modules/database/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ RUN yarn install --production --pure-lockfile --non-interactive && yarn cache cl
88

99
WORKDIR /app/modules/database
1010

11+
ENV NODE_ENV production
12+
1113
ENV CONDUIT_SERVER conduit_server
1214

1315
ENV SERVICE_URL 0.0.0.0:5000
@@ -16,4 +18,4 @@ ENV GRPC_PORT 5000
1618

1719
EXPOSE 5000
1820

19-
CMD ["yarn", "start"]
21+
CMD ["node", "dist/index.js"]

modules/email/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ RUN yarn install --production --pure-lockfile --non-interactive && yarn cache cl
88

99
WORKDIR /app/modules/email
1010

11+
ENV NODE_ENV production
12+
1113
ENV CONDUIT_SERVER conduit_server
1214

1315
ENV SERVICE_URL 0.0.0.0:5000
@@ -16,4 +18,4 @@ ENV GRPC_PORT 5000
1618

1719
EXPOSE 5000
1820

19-
CMD ["yarn", "start"]
21+
CMD ["node", "dist/index.js"]

modules/forms/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ RUN yarn install --production --pure-lockfile --non-interactive && yarn cache cl
88

99
WORKDIR /app/modules/forms
1010

11+
ENV NODE_ENV production
12+
1113
ENV CONDUIT_SERVER conduit_server
1214

1315
ENV SERVICE_URL 0.0.0.0:5000
@@ -16,4 +18,4 @@ ENV GRPC_PORT 5000
1618

1719
EXPOSE 5000
1820

19-
CMD ["yarn", "start"]
21+
CMD ["node", "dist/index.js"]

modules/functions/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ RUN yarn install --production --pure-lockfile --non-interactive && yarn cache cl
88

99
WORKDIR /app/modules/functions
1010

11+
ENV NODE_ENV production
12+
1113
ENV CONDUIT_SERVER conduit_server
1214

1315
ENV SERVICE_URL 0.0.0.0:5000
@@ -16,4 +18,4 @@ ENV GRPC_PORT 5000
1618

1719
EXPOSE 5000
1820

19-
CMD ["yarn", "start"]
21+
CMD ["node", "dist/index.js"]

modules/push-notifications/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ RUN yarn install --production --pure-lockfile --non-interactive && yarn cache cl
88

99
WORKDIR /app/modules/push-notifications
1010

11+
ENV NODE_ENV production
12+
1113
ENV CONDUIT_SERVER conduit_server
1214

1315
ENV SERVICE_URL 0.0.0.0:5000
@@ -16,4 +18,4 @@ ENV GRPC_PORT 5000
1618

1719
EXPOSE 5000
1820

19-
CMD ["yarn", "start"]
21+
CMD ["node", "dist/index.js"]

modules/router/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ RUN apk update && \
1313

1414
WORKDIR /app/modules/router
1515

16+
ENV NODE_ENV production
17+
1618
ENV CONDUIT_SERVER conduit_server
1719

1820
ENV SERVICE_URL 0.0.0.0:5000
@@ -23,4 +25,4 @@ EXPOSE 5000
2325
EXPOSE 3000
2426
EXPOSE 3001
2527

26-
CMD ["yarn", "start"]
28+
CMD ["node", "dist/index.js"]

modules/sms/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ RUN yarn install --production --pure-lockfile --non-interactive && yarn cache cl
88

99
WORKDIR /app/modules/sms
1010

11+
ENV NODE_ENV production
12+
1113
ENV CONDUIT_SERVER conduit_server
1214

1315
ENV SERVICE_URL 0.0.0.0:5000
@@ -16,4 +18,4 @@ ENV GRPC_PORT 5000
1618

1719
EXPOSE 5000
1820

19-
CMD ["yarn", "start"]
21+
CMD ["node", "dist/index.js"]

0 commit comments

Comments
 (0)