feat: Dockerfile

This commit is contained in:
wolter 2024-11-06 11:18:56 +08:00
parent e5dac17d5f
commit 5e8d35df25
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ ENV GOPROXY https://goproxy.cn,direct
WORKDIR /src
COPY ../.. .
COPY . .
RUN go mod tidy
RUN go build -ldflags="-s -w" -o /src/cmd/api/yl cmd/api/yl.go