mirror of
https://github.com/handsomezhuzhu/api-proxy.git
synced 2026-02-20 20:00:15 +00:00
更新 Dockerfile,指定 Alpine 版本为 3.19
This commit is contained in:
@@ -7,7 +7,7 @@ COPY main.go .
|
|||||||
RUN go build -ldflags "-s -w" -o api-proxy main.go
|
RUN go build -ldflags "-s -w" -o api-proxy main.go
|
||||||
|
|
||||||
# 阶段二: 运行
|
# 阶段二: 运行
|
||||||
FROM alpine:latest
|
FROM alpine:3.19
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
# 从编译阶段复制可执行文件
|
# 从编译阶段复制可执行文件
|
||||||
COPY --from=builder /app/api-proxy .
|
COPY --from=builder /app/api-proxy .
|
||||||
|
|||||||
Reference in New Issue
Block a user