Fix NPM repo permissions
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 41s

This commit is contained in:
2024-09-18 16:51:49 +00:00
parent c4b75388d4
commit b382a89d38

View File

@@ -16,6 +16,8 @@ FROM base AS build
COPY package*.json tsconfig.json .npmrc ./
# Install
ARG NPM_TOKEN
ENV NPM_TOKEN ${NPM_TOKEN}
RUN npm install
# Copy the app
@@ -29,6 +31,8 @@ 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
# Copy the app