update docker build
parent
ccade90df4
commit
bc32e43408
|
@ -7,6 +7,7 @@ WORKDIR /app
|
||||||
# 复制go.mod和go.sum文件
|
# 复制go.mod和go.sum文件
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
|
||||||
|
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
# 下载依赖项
|
# 下载依赖项
|
||||||
RUN go mod tidy
|
RUN go mod tidy
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
lucky-tools:
|
lucky-tools:
|
||||||
image: .
|
image: lucky_tools:v1
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue