fix: Dockerfile
This commit is contained in:
parent
2112e6a383
commit
5a44253d6d
|
|
@ -1,5 +1,5 @@
|
||||||
## 使用官方Go镜像作为构建环境
|
## 使用官方Go镜像作为构建环境
|
||||||
FROM golang:1.24.0-alpine AS builder
|
FROM golang:1.24.1-alpine AS builder
|
||||||
|
|
||||||
# 设置工作目录
|
# 设置工作目录
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
@ -15,7 +15,7 @@ COPY . .
|
||||||
|
|
||||||
# 复制go模块依赖文件
|
# 复制go模块依赖文件
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN go mod download
|
RUN go mod tidy
|
||||||
|
|
||||||
RUN go install github.com/google/wire/cmd/wire@latest
|
RUN go install github.com/google/wire/cmd/wire@latest
|
||||||
RUN wire ./cmd/server
|
RUN wire ./cmd/server
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue