Skip to content

Commit

Permalink
feat(Dockerfile): Add command to change directory to build folder
Browse files Browse the repository at this point in the history
This commit adds a new command in the Dockerfile to change the current working directory to the "build" folder. This is done before running the application using the `npm run serve` command.
  • Loading branch information
BillChirico committed Nov 6, 2023
1 parent 52b1b04 commit cffa9e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ ENV NODE_ENV=production
# Copy necessary files from the "builder" stage
EXPOSE 5000
COPY --from=builder /opt/app/build ./build
RUN cd build
# Define the command to run the application
CMD ["sh", "-l", "-c", "npm run serve"]

0 comments on commit cffa9e9

Please sign in to comment.