更新 web/Dockerfile
This commit is contained in:
parent
47a251e92d
commit
159974d00d
|
@ -5,7 +5,8 @@ COPY . .
|
||||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||||
RUN apk add npm
|
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 install
|
RUN npm i cnpm -g
|
||||||
|
RUN cnpm install
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
Loading…
Reference in New Issue