From 83f1b51da22723562ea4e73dca230ec17455db0c Mon Sep 17 00:00:00 2001 From: pupilcc Date: Thu, 6 Jun 2024 19:54:34 +0800 Subject: [PATCH] build: use debian --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 319e2cd..6645db2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,12 @@ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /go/bin/autossl . -FROM alpine:latest +FROM debian:12-slim -RUN apk --no-cache add ca-certificates curl openssl +RUN apt update && apt install -y ca-certificates curl openssl cron RUN curl https://get.acme.sh | sh WORKDIR /root/ COPY --from=builder /go/bin/autossl . EXPOSE 1323 -CMD ["./autossl"] \ No newline at end of file +ENTRYPOINT cron && /autossl \ No newline at end of file