diff --git a/etc/dockerfile b/etc/dockerfile index b0117cc..6c15617 100644 --- a/etc/dockerfile +++ b/etc/dockerfile @@ -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 diff --git a/etc/dockerfile.arm b/etc/dockerfile.arm index 4f571a2..1736848 100644 --- a/etc/dockerfile.arm +++ b/etc/dockerfile.arm @@ -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 \