Skip to content

Commit

Permalink
feat: add npm mirror config support (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen authored May 21, 2024
1 parent 1c89b9d commit c012aaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ FROM base AS deps
WORKDIR /app
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* bun.lockb* ./
ARG INSTALL_CMD={{.InstallCMD}}
ARG NPM_MIRROR=
RUN if [ ! -z "${NPM_MIRROR}" ]; then npm config set registry ${NPM_MIRROR}; fi
RUN if [ ! -z "${INSTALL_CMD}" ]; then echo "${INSTALL_CMD}" > dep.sh; sh dep.sh; fi
FROM base AS builder
Expand Down

0 comments on commit c012aaf

Please sign in to comment.