fix: Dockerfile

This commit is contained in:
wolter 2025-12-05 18:11:02 +08:00
parent 2112e6a383
commit 5a44253d6d
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
## 使用官方Go镜像作为构建环境
FROM golang:1.24.0-alpine AS builder
FROM golang:1.24.1-alpine AS builder
# 设置工作目录
WORKDIR /app
@ -15,7 +15,7 @@ COPY . .
# 复制go模块依赖文件
COPY go.mod go.sum ./
RUN go mod download
RUN go mod tidy
RUN go install github.com/google/wire/cmd/wire@latest
RUN wire ./cmd/server