ci: run npm ci in dockerfile

This commit is contained in:
nkanaev
2026-07-10 21:39:31 +01:00
parent 42d0ccb2b7
commit 4647afab6f
2 changed files with 4 additions and 0 deletions

View File

@@ -2,6 +2,8 @@ FROM golang:alpine3.21 AS build
RUN apk add build-base git nodejs npm
WORKDIR /src
COPY . .
RUN --mount=type=cache,target=/root/.npm \
npm ci
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/root/go/pkg \
make host

View File

@@ -22,6 +22,8 @@ ENV PATH=$PATH:/usr/local/go/bin
WORKDIR /root/src
RUN mkdir /root/out
COPY . .
RUN --mount=type=cache,target=/root/.npm \
npm ci
# Build ARM64
RUN env \