Apply suggestions from code review
Co-authored-by: John McBride <jpmmcbride@gmail.com>
This commit is contained in:
parent
652027dd7a
commit
ef6d84933a
1 changed files with 4 additions and 5 deletions
|
|
@ -14,12 +14,10 @@ RUN npm install --no-package-lock
|
|||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
ENV CLIENT_PORT=6274
|
||||
ENV SERVER_PORT=6277
|
||||
ARG CLIENT_PORT=6274
|
||||
ARG SERVER_PORT=6277
|
||||
|
||||
# Expose the CLIENT_PORT and SERVER_PORT
|
||||
EXPOSE $CLIENT_PORT
|
||||
EXPOSE $SERVER_PORT
|
||||
EXPOSE ${CLIENT_PORT} ${SERVER_PORT}
|
||||
|
||||
# Use ENTRYPOINT with CMD for arguments
|
||||
ENTRYPOINT ["npm", "start"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue