fix: deploy
This commit is contained in:
@@ -9,8 +9,12 @@ WORKDIR /app
|
||||
RUN npm install -g pnpm@10
|
||||
|
||||
# Install dependencies based on the preferred package manager
|
||||
COPY package.json pnpm-lock.yaml* .npmrc* ./
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
ARG NPM_TOKEN
|
||||
RUN if [ -n "$NPM_TOKEN" ]; then \
|
||||
echo "@mintel:registry=https://npm.infra.mintel.me" > .npmrc && \
|
||||
echo "//npm.infra.mintel.me/:_authToken=$NPM_TOKEN" >> .npmrc; \
|
||||
fi
|
||||
RUN --mount=type=cache,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user