update
This commit is contained in:
10
Dockerfile
10
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
|
||||
|
||||
|
Reference in New Issue
Block a user