Browse Source

perf: use yarn instead of npm

JustSong 11 months ago
parent
commit
431c0d6e15
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -3,8 +3,8 @@ FROM node:16 as builder
 WORKDIR /build
 WORKDIR /build
 COPY ./web .
 COPY ./web .
 COPY ./VERSION .
 COPY ./VERSION .
-RUN npm install
-RUN REACT_APP_VERSION=$(cat VERSION) npm run build
+RUN yarn install
+RUN REACT_APP_VERSION=$(cat VERSION) yarn build
 
 
 FROM golang AS builder2
 FROM golang AS builder2