We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04d2138 commit 623d6ffCopy full SHA for 623d6ff
1 file changed
Dockerfile
@@ -50,8 +50,6 @@ COPY next.config.js ./next.config.js
50
COPY tsconfig.json ./tsconfig.json
51
COPY next-env.d.ts ./next-env.d.ts
52
53
-RUN npx tsc --noEmit
54
-
55
RUN npm run build
56
57
# --------------------------------------------------------------------------------
@@ -94,9 +92,10 @@ COPY --chown=node:node package*.json ./
94
92
COPY --chown=node:node feature-flags.json ./
95
93
COPY --chown=node:node next.config.js ./
96
97
-EXPOSE 80
98
-EXPOSE 443
99
-EXPOSE 4000
+# This makes sure server.mjs always picks up the preferred port
+ENV PORT=4000
+EXPOSE $PORT
+
100
CMD ["node", "server.mjs"]
101
102
0 commit comments