We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2df92da + ee32996 commit 58191c6Copy full SHA for 58191c6
.dockerignore
@@ -0,0 +1,4 @@
1
+Dockerfile
2
+.gitignore
3
+.git
4
+uptimerobot
Dockerfile
@@ -0,0 +1,13 @@
+FROM golang:1.10-alpine as builder
+WORKDIR /go/src/github.com/bitfield/uptimerobot/
+ADD . .
+ENV CGO_ENABLED=0
5
+RUN apk --no-cache add git ca-certificates && \
6
+ go get -t . && \
7
+ go test && \
8
+ go build -o /uptimerobot
9
+
10
+FROM scratch
11
+COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
12
+COPY --from=builder /uptimerobot /uptimerobot
13
+ENTRYPOINT ["/uptimerobot"]
0 commit comments