2024-08-10 07:31:10 +00:00
|
|
|
FROM registry.cn-shenzhen.aliyuncs.com/starsl/node:14-alpine AS builder
|
2022-01-28 04:10:09 +00:00
|
|
|
ADD . /vue
|
|
|
|
WORKDIR /vue
|
2024-02-23 08:36:39 +00:00
|
|
|
RUN npm install --registry=https://registry.npmmirror.com && npm run build:prod
|
2022-01-28 04:10:09 +00:00
|
|
|
|
2024-08-10 07:31:10 +00:00
|
|
|
FROM registry.cn-shenzhen.aliyuncs.com/starsl/nginx:1.24.0-alpine
|
2022-01-28 04:10:09 +00:00
|
|
|
WORKDIR /www
|
2022-06-30 23:58:29 +00:00
|
|
|
COPY --from=builder /vue/http-ops.conf /etc/nginx/conf.d/default.conf
|
2022-01-28 04:10:09 +00:00
|
|
|
COPY --from=builder /vue/dist dist/
|