From 6180be8846904ca0ff5b5dc5c1577ff23cf0b2c8 Mon Sep 17 00:00:00 2001 From: pupilcc Date: Tue, 30 Jul 2024 23:33:31 +0800 Subject: [PATCH] build: fix apt remove --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b1a34ef..14801ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,7 @@ COPY . . RUN CGO_ENABLED=1 GOOS=linux go build -a -o /go/bin/autossl . FROM debian:bookworm-slim -RUN apt-get update && apt-get install -y ca-certificates curl openssl \ - && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y ca-certificates curl openssl RUN curl https://get.acme.sh | sh WORKDIR /root/ COPY --from=builder /go/bin/autossl .