Severian commited on
Commit
479d663
1 Parent(s): 4c00dd2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -6,10 +6,10 @@ RUN apk add --no-cache libc6-compat
6
 
7
  WORKDIR /app
8
 
9
- COPY package.json yarn.lock ./
10
 
11
- RUN yarn config set registry 'https://registry.npmmirror.com/'
12
- RUN yarn install
13
 
14
  FROM base AS builder
15
 
@@ -20,7 +20,7 @@ WORKDIR /app
20
  COPY --from=deps /app/node_modules ./node_modules
21
  COPY . .
22
 
23
- RUN yarn build
24
 
25
  FROM base AS runner
26
  WORKDIR /app
 
6
 
7
  WORKDIR /app
8
 
9
+ COPY package.json package.lock ./
10
 
11
+ RUN npm config set registry 'https://registry.npmmirror.com/'
12
+ RUN npm install
13
 
14
  FROM base AS builder
15
 
 
20
  COPY --from=deps /app/node_modules ./node_modules
21
  COPY . .
22
 
23
+ RUN npm build
24
 
25
  FROM base AS runner
26
  WORKDIR /app