From 05edffe173f736dcac4faffaca6782df883c4a7c Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 9 Jul 2020 15:35:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(Docker):=20=E4=BF=AE=E6=94=B9Dockerfile?= =?UTF-8?q?=EF=BC=8C=E7=BB=9F=E4=B8=80=E4=BD=BF=E7=94=A8build.sh=E6=9E=84?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82bb15c9a..409c50475 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,9 @@ FROM node:10 as stage-build WORKDIR /data -ADD ./package.json /data/package.json -ADD ./yarn.lock /data/yarn.lock -RUN yarn ADD . /data -RUN yarn build:prod +RUN cd utils && bash -ix build.sh FROM nginx:alpine -COPY --from=stage-build /data/lina /opt/lina/ +COPY --from=stage-build /data/release/lina /opt/lina/ COPY nginx.conf /etc/nginx/conf.d/default.conf