Skip to content

Commit

Permalink
chore(Dockerfile): Update working directory in Dockerfile
Browse files Browse the repository at this point in the history
Updated the Dockerfile to change the working directory to /opt/app/build using the WORKDIR command. This ensures that the application runs from the correct directory when the container is started.
  • Loading branch information
BillChirico committed Nov 6, 2023
1 parent cffa9e9 commit 7a110ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +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
WORKDIR /opt/app/build
# Define the command to run the application
CMD ["sh", "-l", "-c", "npm run serve"]

0 comments on commit 7a110ef

Please sign in to comment.