Skip to content

Commit

Permalink
no dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Oct 31, 2024
1 parent 82f3608 commit 53b126f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ WORKDIR /app
# Copy the package.json and package-lock.json files to install dependencies
COPY package*.json ./

# Set NODE_ENV to production to skip devDependencies
ENV NODE_ENV=production

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

# Copy the rest of the application code
COPY . .
Expand Down

0 comments on commit 53b126f

Please sign in to comment.