Skip to content

Commit

Permalink
Modified: backend Dockerfile, fixed the production dependencies command
Browse files Browse the repository at this point in the history
  • Loading branch information
HartyPotter committed Aug 27, 2024
1 parent dd677ad commit 297e9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ WORKDIR /app
# Copy only the production dependencies from the build stage
COPY --from=build /app/package*.json ./

# Install only production dependencies
RUN npm ci --only=production
# Install dependencies
RUN npm install --only=prod

# Copy the built application from the build stage
COPY --from=build /app/dist ./dist
Expand Down

0 comments on commit 297e9c2

Please sign in to comment.