Skip to content

Commit

Permalink
build: run image
Browse files Browse the repository at this point in the history
  • Loading branch information
pupilcc committed Jul 30, 2024
1 parent 9c8bf37 commit 1a1957f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
FROM golang:1.21.1 as builder

RUN apt-get update && apt-get install -y gcc libc6-dev

WORKDIR /go/src/autossl
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .

RUN CGO_ENABLED=1 GOOS=linux go build -a -o /go/bin/autossl .

FROM alpine:latest
RUN apk --no-cache add ca-certificates curl openssl
RUN curl https://get.acme.sh | sh

WORKDIR /root/
COPY --from=builder /go/bin/autossl .
EXPOSE 1323
Expand Down

0 comments on commit 1a1957f

Please sign in to comment.