Skip to content

Commit

Permalink
fix missing dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Nov 4, 2024
1 parent 70340c5 commit 9c82082
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile.nestjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
FROM node:22-alpine

ENV \
NODE_ENV=production \
PORT=5030

ENV \
REGISTRY_UID=10011 \
REGISTRY_GID=10011
Expand All @@ -22,6 +18,12 @@ RUN cd api-node && yarn install --frozen-lockfile

COPY . .

# Set to production environment
# Importantly, after installing deps, otherwise dev deps aren't installed
ENV \
NODE_ENV=production \
PORT=5030

WORKDIR /work/api-node

# Build the application
Expand Down

0 comments on commit 9c82082

Please sign in to comment.