Skip to content

Commit

Permalink
build: add variables (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi authored Dec 24, 2023
1 parent f17f7b4 commit c9f98cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG NODE_ENV=production
WORKDIR /app
RUN npm config set cache /.npm
COPY ./package*.json ./
RUN --mount=type=cache,target=/.npm \
RUN --mount=type=cache,id=npm-$TARGETPLATFORM,target=/.npm \
npm ci

FROM --platform=$BUILDPLATFORM node:20.10.0-bookworm AS builder
Expand All @@ -14,7 +14,7 @@ WORKDIR /app
RUN npm config set cache /.npm
COPY ./build.js ./
COPY ./package*.json ./
RUN --mount=type=cache,target=/.npm \
RUN --mount=type=cache,id=npm-$TARGETPLATFORM,target=/.npm \
npm ci
COPY ./src/ ./src/
RUN npm run build
Expand Down

0 comments on commit c9f98cf

Please sign in to comment.