Skip to content

Commit

Permalink
Move port into production container.
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Mar 18, 2022
1 parent 5fbe023 commit 469012d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ COPY server/yarn.lock yarn.lock
RUN yarn install
RUN yarn build

# We expose port 4000 as that's where the app runs by default
EXPOSE 4000

# ------------------------------------------------------------------------------
# From builder to production image
# ------------------------------------------------------------------------------
Expand All @@ -42,4 +39,6 @@ WORKDIR /usr/src/
COPY --from=builder /usr/src/frontend/build/ ./frontend/build/
COPY --from=builder /usr/src/server/dist/ ./server/dist/

EXPOSE 4000

CMD [ "node", "server/dist" ]

0 comments on commit 469012d

Please sign in to comment.