From 7a110ef4488d4a102199baa4143556b41e127f6e Mon Sep 17 00:00:00 2001 From: Bill Chirico Date: Mon, 6 Nov 2023 11:54:10 -0500 Subject: [PATCH] chore(Dockerfile): Update working directory in Dockerfile 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. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cf650cc..0c89145 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file