Skip to content

Commit

Permalink
build: use debian
Browse files Browse the repository at this point in the history
  • Loading branch information
pupilcc committed Jun 6, 2024
1 parent 486c80b commit 83f1b51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
ENTRYPOINT cron && /autossl

0 comments on commit 83f1b51

Please sign in to comment.