Skip to content

Commit

Permalink
Dockerfile update
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Feb 10, 2025
1 parent cdd2c10 commit 3555ad1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# node:22.13.1-alpine
FROM --platform=${BUILDPLATFORM} node@sha256:e2b39f7b64281324929257d0f8004fb6cb4bf0fdfb9aa8cedb235a766aec31da
FROM --platform=${TARGETPLATFORM} node@sha256:e2b39f7b64281324929257d0f8004fb6cb4bf0fdfb9aa8cedb235a766aec31da

ARG BUILDPLATFORM
ARG TARGETPLATFORM
Expand Down Expand Up @@ -37,6 +37,10 @@ COPY package.json package.json
COPY package-lock.json package-lock.json
COPY sbom.json sbom.json
COPY server.js server.js

RUN mkdir -p .git/refs/heads
COPY .git/refs/heads/master .git/refs/heads/master

COPY update-info.sh update-info.sh

RUN npm ci --omit=dev
Expand Down

0 comments on commit 3555ad1

Please sign in to comment.