From 1cd4f1f22836810c80e7146dfba06ca187b883ed Mon Sep 17 00:00:00 2001 From: OrangeM21 Date: Thu, 18 Jun 2020 15:32:11 +0800 Subject: [PATCH] =?UTF-8?q?[hotfix]=E4=BF=AE=E6=94=B9build=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 1 + .gitignore | 1 + Dockerfile | 2 +- vue.config.js | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index de4d1f007..7c3b4c0b7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ +lina dist node_modules diff --git a/.gitignore b/.gitignore index 9ad28d23d..e5c58cf89 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .DS_Store node_modules/ dist/ +lina/ npm-debug.log* yarn-debug.log* yarn-error.log* diff --git a/Dockerfile b/Dockerfile index 66d2f8330..82bb15c9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,5 +8,5 @@ RUN yarn build:prod FROM nginx:alpine -COPY --from=stage-build /data/dist /opt/lina/ +COPY --from=stage-build /data/lina /opt/lina/ COPY nginx.conf /etc/nginx/conf.d/default.conf diff --git a/vue.config.js b/vue.config.js index b7990bf9d..bd8113b3e 100644 --- a/vue.config.js +++ b/vue.config.js @@ -29,7 +29,7 @@ module.exports = { /\/node_modules\/resize-detector\// ], publicPath: '/ui/', - outputDir: 'dist', + outputDir: 'lina', assetsDir: 'assets', lintOnSave: process.env.NODE_ENV === 'development', productionSourceMap: false,