Skip to content

Commit dfb3baa

Browse files
authored
优化镜像构建
1 parent f5b3342 commit dfb3baa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ghproxy/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=${VERSION}" -o main .
1010

1111
FROM alpine:latest
1212

13-
RUN apk --no-cache add ca-certificates curl
13+
RUN apk add --no-cache curl
1414

1515
WORKDIR /data
1616

@@ -21,4 +21,4 @@ RUN mkdir -p ghproxy/config ghproxy/log www \
2121

2222
COPY --from=builder /app/config /data/ghproxy/config/
2323

24-
CMD ["/data/main", "-cfg", "/data/ghproxy/config/config.toml"]
24+
CMD ["/data/main", "-cfg", "/data/ghproxy/config/config.toml"]

0 commit comments

Comments
 (0)