Skip to content

Commit 29d4f4e

Browse files
committed
build: refactor Dockerfile dependency installation and add dedicated frontend production image
1 parent ea02454 commit 29d4f4e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM node:20-slim AS frontend-build
33
WORKDIR /app
44
COPY package*.json ./
55
COPY apps/frontend/package*.json ./apps/frontend/
6-
RUN npm cache clean --force
7-
RUN npm install --force
6+
RUN rm -rf package-lock.json
7+
RUN npm install
88
COPY . .
99
WORKDIR /app/apps/frontend
1010
RUN npx vite build

infra/docker/frontend.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ WORKDIR /app
66
COPY package*.json ./
77
COPY apps/frontend/package*.json ./apps/frontend/
88

9-
RUN npm cache clean --force
10-
RUN npm install --force
9+
RUN rm -rf package-lock.json
10+
RUN npm install
1111

1212
# Copy everything
1313
COPY . .

0 commit comments

Comments
 (0)