Fix env issue
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 4s

This commit is contained in:
2024-09-25 15:01:18 +00:00
parent b382a89d38
commit 0e9de8deb5
2 changed files with 4 additions and 5 deletions

View File

@@ -17,8 +17,7 @@ COPY package*.json tsconfig.json .npmrc ./
# Install
ARG NPM_TOKEN
ENV NPM_TOKEN ${NPM_TOKEN}
RUN npm install
RUN npm install --//npm.token=${NPM_TOKEN}
# Copy the app
COPY src ./src
@@ -32,8 +31,7 @@ FROM node:lts-alpine
# Install dependencies but skip dev dependencies
COPY --from=build /app/package*.json /app/.npmrc ./
ARG NPM_TOKEN
ENV NPM_TOKEN ${NPM_TOKEN}
RUN npm install --only=production
RUN npm install --only=production --//npm.token=${NPM_TOKEN}
# Copy the app
COPY --from=build /app/dist ./dist