Fix CI
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 48s

This commit is contained in:
2024-09-25 15:12:40 +00:00
parent 0e9de8deb5
commit b3c050ed9e
4 changed files with 4 additions and 9 deletions

View File

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