Skip to content

Commit 9937070

Browse files
authored
Merge pull request #11 from hetykai/patch-1
small docker image size
2 parents 11368d4 + ac5ec53 commit 9937070

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM golang:alpine
1+
FROM golang:alpine AS builder
22

3-
RUN apk update && apk add git
3+
RUN apk add --no-cache git && CGO_ENABLED=0 GOOS=linux go get github.com/alash3al/httpsify
44

5-
RUN go get github.com/alash3al/httpsify
5+
FROM scratch
66

7-
ENTRYPOINT ["httpsify"]
7+
COPY --from=builder /go/bin/httpsify /go/bin/httpsify
88

9-
WORKDIR /root/
9+
ENTRYPOINT ["/go/bin/httpsify"]

0 commit comments

Comments
 (0)