Update Dockerfile
parent
b68e576357
commit
7bb2ac22d4
|
@ -1,9 +1,9 @@
|
|||
FROM node:14-alpine AS builder
|
||||
FROM registry.cn-shenzhen.aliyuncs.com/starsl/node:14-alpine AS builder
|
||||
ADD . /vue
|
||||
WORKDIR /vue
|
||||
RUN npm install --registry=https://registry.npmmirror.com && npm run build:prod
|
||||
|
||||
FROM nginx:1.24.0-alpine
|
||||
FROM registry.cn-shenzhen.aliyuncs.com/starsl/nginx:1.24.0-alpine
|
||||
WORKDIR /www
|
||||
COPY --from=builder /vue/http-ops.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /vue/dist dist/
|
||||
|
|
Loading…
Reference in New Issue