Update Dockerfile

pull/131/head
StarsL.cn 2024-08-10 15:31:10 +08:00 committed by GitHub
parent b68e576357
commit 7bb2ac22d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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/