File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 ghcr.io/${{ env.REPO }}:latest
4343 ghcr.io/${{ env.REPO }}:${{ github.sha }}
4444 cache-from : type=gha
45- cache-to : type=gha,mode=max
45+ cache-to : type=gha,mode=min
Original file line number Diff line number Diff line change 1+ node_modules
2+ dist
3+ .env
4+ .env. *
5+ * .log
6+ test
7+ README.md
8+ .dockerignore
9+ Dockerfile
10+ docker-compose.yml
Original file line number Diff line number Diff line change 44FROM node:22-alpine AS build
55WORKDIR /app
66COPY package.json package-lock.json* ./
7- RUN npm ci
7+ RUN npm ci --ignore-scripts --no-audit --no-fund --loglevel=error
88COPY tsconfig.json ./
99COPY src ./src
10- RUN npm run build
11-
12- # ─── Production deps only ───
13- FROM node:22-alpine AS deps
14- WORKDIR /app
15- COPY package.json package-lock.json* ./
16- RUN npm ci --omit=dev
10+ RUN npm run build \
11+ && npm prune --omit=dev --ignore-scripts
1712
1813# ─── Runtime ───
1914FROM node:22-alpine AS runtime
@@ -24,7 +19,7 @@ ENV FACILITATOR_PORT=4021
2419
2520RUN addgroup -S app && adduser -S app -G app
2621
27- COPY --from=deps /app/node_modules ./node_modules
22+ COPY --from=build /app/node_modules ./node_modules
2823COPY --from=build /app/dist ./dist
2924COPY package.json ./
3025
You can’t perform that action at this time.
0 commit comments