From af1406596c1e74cad7a3a4779c37d89cc069ebb6 Mon Sep 17 00:00:00 2001 From: Hua Date: Thu, 19 Sep 2024 16:01:18 +0800 Subject: [PATCH] update --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index bac9c4b..d313271 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM golang:alpine AS builder WORKDIR /build # 复制整个项目 -COPY . . +COPY . ./override-web # 设置 Go 环境 ENV GO111MODULE=on GOPROXY=https://goproxy.cn,direct @@ -28,13 +28,13 @@ RUN apk --no-cache add ca-certificates COPY --from=builder /build/override-web/config/config-server /usr/local/bin/ COPY --from=builder /build/override-web/override/override /usr/local/bin/ -# 复制配置文件和静态文件 -COPY override-web/config/web /app/web -COPY config.json.example /app/config.json - WORKDIR /app VOLUME /app +# 复制配置文件和静态文件 +COPY ./config/web /app/web +COPY ./override/config.json.example /app/config.json + # 暴露原始应用和配置管理服务器的端口 EXPOSE 8181 9090