2022-06-19 16:47:31 +00:00
|
|
|
FROM node:14-alpine AS builder
|
|
|
|
ADD . /vue
|
|
|
|
WORKDIR /vue
|
|
|
|
RUN mv -f src/views/login/index.vue.tensuns src/views/login/index.vue && \
|
|
|
|
mv -f src/settings.js.tensuns src/settings.js && \
|
|
|
|
npm install --registry=https://registry.npm.taobao.org && npm run build:prod
|
|
|
|
|
|
|
|
FROM nginx:stable-alpine
|
|
|
|
WORKDIR /www
|
2022-06-30 23:58:29 +00:00
|
|
|
COPY --from=builder /vue/http-ops.conf /etc/nginx/conf.d/default.conf
|
2022-06-19 16:47:31 +00:00
|
|
|
COPY --from=builder /vue/dist dist/
|