Skip to content

Commit

Permalink
fix: dockerfile react prod environment
Browse files Browse the repository at this point in the history
  • Loading branch information
skyface753 committed Jan 28, 2024
1 parent e21f6b3 commit 5cf02e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions react-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5cf02e3

Please sign in to comment.