Allowing setting of the ports at the environment variable level so the apps are aware of them
This commit is contained in:
parent
48af4797f4
commit
f73894fbf0
1 changed files with 5 additions and 1 deletions
|
|
@ -41,8 +41,12 @@ COPY --from=builder /app/client/bin ./client/bin
|
|||
COPY --from=builder /app/server/build ./server/build
|
||||
COPY --from=builder /app/cli/build ./cli/build
|
||||
|
||||
# Set default port values as environment variables
|
||||
ENV CLIENT_PORT=6274
|
||||
ENV SERVER_PORT=6277
|
||||
|
||||
# Document which ports the application uses internally
|
||||
EXPOSE 6274 6277
|
||||
EXPOSE ${CLIENT_PORT} ${SERVER_PORT}
|
||||
|
||||
# Use ENTRYPOINT with CMD for arguments
|
||||
ENTRYPOINT ["npm", "start"]
|
||||
Loading…
Reference in a new issue