We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11368d4 commit ac5ec53Copy full SHA for ac5ec53
Dockerfile
@@ -1,9 +1,9 @@
1
-FROM golang:alpine
+FROM golang:alpine AS builder
2
3
-RUN apk update && apk add git
+RUN apk add --no-cache git && CGO_ENABLED=0 GOOS=linux go get github.com/alash3al/httpsify
4
5
-RUN go get github.com/alash3al/httpsify
+FROM scratch
6
7
-ENTRYPOINT ["httpsify"]
+COPY --from=builder /go/bin/httpsify /go/bin/httpsify
8
9
-WORKDIR /root/
+ENTRYPOINT ["/go/bin/httpsify"]
0 commit comments