File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 9999 build-args : |
100100 VERSION=v${{ steps.version.outputs.version }}
101101 cache-from : type=gha
102- cache-to : type=gha,mode=max
102+ cache-to : type=gha
103103
104104 - name : Image info
105105 run : docker manifest inspect docker.io/bigtimber/street-sweep:latest || true
Original file line number Diff line number Diff line change 11# Install dependencies only when needed
22FROM node:20-slim AS deps
3- RUN apt-get update && apt-get install -y libc6-dev && rm -rf /var/lib/apt/lists/*
3+ RUN apt-get update && apt-get install -y --no-install-recommends libc6-dev && rm -rf /var/lib/apt/lists/*
44WORKDIR /app
55COPY package.json package-lock.json ./
6- RUN npm ci
6+ RUN --mount=type=cache,target=/root/.npm npm ci
77
88# Rebuild the source code only when needed
99FROM node:20-slim AS builder
1010WORKDIR /app
1111COPY --from=deps /app/node_modules ./node_modules
1212COPY . .
13- RUN npm run build
13+ RUN --mount=type=cache,target=/app/.next/cache npm run build
1414
1515# Production image, copy all the files and run next
1616FROM node:20-slim AS runner
You can’t perform that action at this time.
0 commit comments