From 5cf02e38c4bca48015a93613f0ecda0edb6c068b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 28 Jan 2024 23:45:34 +0100 Subject: [PATCH] fix: dockerfile react prod environment --- react-app/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/react-app/Dockerfile b/react-app/Dockerfile index 2ff6c40..abdf1ec 100644 --- a/react-app/Dockerfile +++ b/react-app/Dockerfile @@ -42,10 +42,9 @@ RUN --mount=type=bind,source=package.json,target=package.json \ # Copy the rest of the source files into the image. COPY . . # # Run the build script. -RUN NODE_ENV=development npm i # ARG NEXT_PUBLIC_API_URL # ENV NEXT_PUBLIC_API_URL $NEXT_PUBLIC_API_URL -RUN NODE_ENV=development npm run build +RUN npm run build ################################################################################ # Create a new stage to run the application with minimal runtime dependencies