File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
- FROM node:20-alpine as build
1
+ ARG GITHUB_TOKEN
2
+
3
+ FROM node:20-alpine AS build
2
4
WORKDIR /app
3
- COPY package*.json .
4
- RUN npm install
5
+ COPY package*.json ./
6
+ RUN echo "registry=https://registry.npmjs.org/" > .npmrc && \
7
+ echo "@kesha123:registry=https://npm.pkg.github.com/" >> .npmrc && \
8
+ echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> .npmrc && \
9
+ npm install
5
10
COPY . .
6
- RUN npm run build
7
11
8
12
FROM node:20-alpine
9
13
WORKDIR /app
Original file line number Diff line number Diff line change 1
- ARG GITHUB_TOKEN
2
-
3
1
FROM node:20-alpine AS build
4
2
WORKDIR /app
5
3
COPY package*.json ./
6
- RUN echo "registry=https://registry.npmjs.org/" > .npmrc && \
7
- echo "@kesha123:registry=https://npm.pkg.github.com/" >> .npmrc && \
8
- echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> .npmrc && \
9
- npm install
4
+ RUN npm install
10
5
COPY . .
11
6
12
7
FROM node:20-alpine AS migrations
You can’t perform that action at this time.
0 commit comments