From 3508d6dd45024e4de9f14e255640fded92e5467d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=8C=E6=96=87=E9=BE=99?= Date: Fri, 16 Jun 2023 03:09:17 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'web/Dockerfilenew'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/Dockerfilenew | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/Dockerfilenew b/web/Dockerfilenew index 5ce0be9..b820441 100644 --- a/web/Dockerfilenew +++ b/web/Dockerfilenew @@ -1,6 +1,9 @@ FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12-dev as builder -COPY . /var/app + WORKDIR /var/app + +COPY ./web/ /var/app + EXPOSE 8080 RUN npm config set registry=https://nexus.ngaiot.com/repository/fs-npm/ RUN echo "{\"time\":\"$BUILD_TIMESTAMP\",\"build\": \"$BUILD_NUMBER\",\"revision\": \"$SVN_REVISION_1\",\"URL\":\"$SVN_URL_1\"}" > version.json