Skip to content

Commit

Permalink
Merge pull request #180 from github-community-projects/dockerfile-ver…
Browse files Browse the repository at this point in the history
…sion-pinning

chore: pin shas in Dockerfile
  • Loading branch information
zkoppert authored Jun 13, 2024
2 parents 22a0ee6 + 8577373 commit 4c7aad0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:22-alpine AS deps
FROM node:22-alpine@sha256:609a983bfbc262ec900efca2d7e2df721065a264a8c7aa288a8383531e47dc8c AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app

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

FROM node:22-alpine AS builder
FROM node:22-alpine@sha256:609a983bfbc262ec900efca2d7e2df721065a264a8c7aa288a8383531e47dc8c AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
Expand All @@ -14,7 +14,7 @@ ENV NEXT_TELEMETRY_DISABLED 1

RUN npm run build

FROM node:22-alpine AS runner
FROM node:22-alpine@sha256:609a983bfbc262ec900efca2d7e2df721065a264a8c7aa288a8383531e47dc8c AS runner
RUN apk add --no-cache git
WORKDIR /app

Expand Down

0 comments on commit 4c7aad0

Please sign in to comment.