更新 web/Dockerfile
Docker Deploy / build-and-deploy (push) Has been cancelled
Details
Docker Deploy / build-and-deploy (push) Has been cancelled
Details
This commit is contained in:
parent
5a5ae5ac05
commit
33f3b03cfa
|
@ -1,12 +1,11 @@
|
|||
FROM node:18
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /gva_web/
|
||||
COPY . .
|
||||
RUN npm config set registry https://registry.npm.taobao.org
|
||||
RUN npm install -g yarn@latest
|
||||
RUN yarn config set registry https://registry.npm.taobao.org
|
||||
RUN yarn install
|
||||
RUN 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://npm.aliyun.com
|
||||
RUN npm install && npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
|
||||
|
|
Loading…
Reference in New Issue