Fix NPM repo permissions
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 41s
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 41s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user