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