更新 web/Dockerfile
Docker Deploy / build-and-deploy (push) Waiting to run
Details
Docker Deploy / build-and-deploy (push) Waiting to run
Details
This commit is contained in:
parent
fb7a723620
commit
5474c0f88b
|
@ -2,14 +2,13 @@ FROM node:16
|
|||
|
||||
WORKDIR /gva_web/
|
||||
COPY . .
|
||||
RUN yarn config set registry https://mirrors.huaweicloud.com/repository/npm/
|
||||
RUN yarn && yarn build
|
||||
|
||||
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
#RUN apk add npm
|
||||
#RUN npm config set registry https://mirrors.huaweicloud.com/repository/npm/
|
||||
RUN npm config set registry https://mirrors.huaweicloud.com/repository/npm/
|
||||
#RUN npm i cnpm -g
|
||||
#RUN cnpm install
|
||||
#RUN npm run build
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
|
||||
FROM nginx:alpine
|
||||
|
|
Loading…
Reference in New Issue