更新 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/
|
WORKDIR /gva_web/
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm config set registry https://registry.npm.taobao.org
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||||
RUN npm install -g yarn@latest
|
RUN apk add npm
|
||||||
RUN yarn config set registry https://registry.npm.taobao.org
|
RUN npm config set registry https://npm.aliyun.com
|
||||||
RUN yarn install
|
RUN npm install && npm run build
|
||||||
RUN yarn build
|
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
|
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
|
||||||
|
|
Loading…
Reference in New Issue