perf: 使用 yarn 构建

This commit is contained in:
吴小白
2022-09-29 16:28:23 +08:00
committed by huailei
parent eb3d9089e0
commit 5cd4e5b40b
2 changed files with 4 additions and 2 deletions

View File

@@ -14,8 +14,9 @@ RUN set -ex \
ADD . /data
RUN RUN --mount=type=cache,target=/root/.cache/yarn \
yarn install && cd utils && bash -xieu build.sh build
yarn install \
&& yarn build
FROM nginx:alpine
COPY --from=stage-build /data/release/lina /opt/lina
COPY --from=stage-build /data/lina /opt/lina
COPY nginx.conf /etc/nginx/conf.d/default.conf

View File

@@ -7,6 +7,7 @@
"scripts": {
"dev": "vue-cli-service serve",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --mode staging",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",