mirror of
https://github.com/nkanaev/yarr.git
synced 2026-07-15 11:06:31 +00:00
ci: run npm ci in dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user