Skip to content

Commit

Permalink
update docker file to only install required dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadim Ritter committed May 16, 2024
1 parent 2131bcc commit 7832864
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
FROM node:18 as client-builder
WORKDIR /app/client
COPY client/package*.json ./
RUN npm install
RUN npm install --production
COPY client/ .
RUN npm run build

# Stage 2: Build the Express server
FROM node:18 as server-builder
WORKDIR /app/server
COPY server/package*.json ./
RUN npm install
RUN npm install --production
COPY server/ .
RUN npm run build

Expand Down

0 comments on commit 7832864

Please sign in to comment.