fix: deploy

This commit is contained in:
2026-02-10 13:23:51 +01:00
parent eedfb36764
commit 69fabf39a7
3 changed files with 20 additions and 1 deletions

View File

@@ -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