This commit is contained in:
Hua
2024-09-19 16:01:18 +08:00
parent d5d6b89b4e
commit af1406596c

View File

@ -4,7 +4,7 @@ FROM golang:alpine AS builder
WORKDIR /build WORKDIR /build
# 复制整个项目 # 复制整个项目
COPY . . COPY . ./override-web
# 设置 Go 环境 # 设置 Go 环境
ENV GO111MODULE=on GOPROXY=https://goproxy.cn,direct 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/config/config-server /usr/local/bin/
COPY --from=builder /build/override-web/override/override /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 WORKDIR /app
VOLUME /app VOLUME /app
# 复制配置文件和静态文件
COPY ./config/web /app/web
COPY ./override/config.json.example /app/config.json
# 暴露原始应用和配置管理服务器的端口 # 暴露原始应用和配置管理服务器的端口
EXPOSE 8181 9090 EXPOSE 8181 9090