chore: use Docker mod cache for building assets
This commit is contained in:
parent
9ea3eeb9ef
commit
359643fe3f
1 changed files with 2 additions and 3 deletions
|
|
@ -7,8 +7,7 @@ WORKDIR /build
|
|||
|
||||
# install node tools
|
||||
COPY package*.json ./
|
||||
RUN --mount=type=cache,target=/root/.npm \
|
||||
npm ci
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci
|
||||
|
||||
# build ui
|
||||
COPY Makefile .
|
||||
|
|
@ -52,7 +51,7 @@ RUN --mount=type=cache,target=${GOMODCACHE} make install
|
|||
# prepare
|
||||
COPY . .
|
||||
RUN make patch-asn1
|
||||
RUN make assets
|
||||
RUN --mount=type=cache,target=${GOMODCACHE} make assets
|
||||
|
||||
# copy ui
|
||||
COPY --from=node /build/dist /build/dist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue