We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48af479 commit f73894fCopy full SHA for f73894f
Dockerfile
@@ -41,8 +41,12 @@ COPY --from=builder /app/client/bin ./client/bin
41
COPY --from=builder /app/server/build ./server/build
42
COPY --from=builder /app/cli/build ./cli/build
43
44
+# Set default port values as environment variables
45
+ENV CLIENT_PORT=6274
46
+ENV SERVER_PORT=6277
47
+
48
# Document which ports the application uses internally
-EXPOSE 6274 6277
49
+EXPOSE ${CLIENT_PORT} ${SERVER_PORT}
50
51
# Use ENTRYPOINT with CMD for arguments
52
ENTRYPOINT ["npm", "start"]
0 commit comments