From a9231593e360582673ac85ace972f91f668d10d1 Mon Sep 17 00:00:00 2001 From: niushuai233 Date: Fri, 30 Dec 2022 14:14:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 3 +++ Dockerfile | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 947e7f8..93180aa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,6 +41,9 @@ steps: path: /drone/src/node_modules commands: - echo 'node package start' + - pwd + - ls -alh + - ls -alh node_modules # 打包 - npm config set cache /node_cache --global - npm run pre diff --git a/Dockerfile b/Dockerfile index ecbf92a..b887c48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,10 @@ FROM nginx:1.23 MAINTAINER shuai.niu@foxmail.com # 设置环境变量 -ENV DEV_API_URL http://localhost:8080 -ENV TEST_API_URL http://localhost:8080 ENV PROD_API_URL http://localhost:8080 # 拷贝前端工程文件 -ADD dist/ /var/www/html/ +ADD dist/ /usr/share/nginx/html/ # 拷贝镜像启动程序 ADD entry-point.sh /entry-point.sh