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