We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b21d2c commit 3b4f127Copy full SHA for 3b4f127
Dockerfile
@@ -1,7 +1,16 @@
1
-FROM golang:latest AS builder
+FROM golang:alpine AS builder
2
3
-ADD . /go/src/github.com/ochinchina/supervisord
4
-RUN go get -v -u github.com/ochinchina/supervisord && go build -o /usr/local/bin/supervisord github.com/ochinchina/supervisord
+RUN apk update && \
+ apk add git
5
+
6
+# uncomments this if golang.org is not accessible
7
+#RUN mkdir -p $GOPATH/src/golang.org/x && \
8
+# cd $GOPATH/src/golang.org/x && \
9
+# git clone https://github.com/golang/crypto && \
10
+# git clone https://github.com/golang/sys
11
12
+RUN go get -v -u github.com/ochinchina/supervisord && \
13
+ go build -o /usr/local/bin/supervisord github.com/ochinchina/supervisord
14
15
FROM alpine:latest
16
0 commit comments