Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ FROM alpine:3.23 AS frontend-builder
RUN apk upgrade --no-cache && apk add --no-cache nodejs npm
WORKDIR /app/frontend
COPY frontend/package*.json ./
RUN npm ci
RUN npm install
COPY frontend/ .
RUN npm run build

FROM alpine:3.23 AS backend-deps
RUN apk upgrade --no-cache && apk add --no-cache nodejs npm
WORKDIR /app/backend
COPY backend/package*.json ./
RUN npm ci --omit=dev
RUN npm install --omit=dev

# Pin by digest: docker pull gcr.io/distroless/nodejs20-debian12 && docker inspect --format='{{index .RepoDigests 0}}' gcr.io/distroless/nodejs20-debian12
FROM gcr.io/distroless/nodejs20-debian12
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apk upgrade --no-cache && apk add --no-cache nodejs npm
WORKDIR /app

COPY package*.json ./
RUN npm ci --omit=dev
RUN npm install --omit=dev

FROM alpine:3.23
RUN apk upgrade --no-cache && apk add --no-cache nodejs npm
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apk upgrade --no-cache && apk add --no-cache nodejs npm
WORKDIR /app

COPY package*.json ./
RUN npm ci
RUN npm install

COPY . .

Expand Down
Loading