update docker build

main
dugulingping 2024-01-21 23:20:09 +08:00
parent ccade90df4
commit bc32e43408
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ WORKDIR /app
# 复制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

View File

@ -2,7 +2,7 @@ version: '3'
services:
lucky-tools:
image: .
image: lucky_tools:v1
ports:
- "8080:8080"
volumes: