Skip to content

Commit

Permalink
fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
ochinchina committed Mar 25, 2018
1 parent 7b21d2c commit 3b4f127
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
FROM golang:latest AS builder
FROM golang:alpine AS builder

ADD . /go/src/github.com/ochinchina/supervisord
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

# uncomments this if golang.org is not accessible
#RUN mkdir -p $GOPATH/src/golang.org/x && \
# cd $GOPATH/src/golang.org/x && \
# git clone https://github.com/golang/crypto && \
# git clone https://github.com/golang/sys

RUN go get -v -u github.com/ochinchina/supervisord && \
go build -o /usr/local/bin/supervisord github.com/ochinchina/supervisord

FROM alpine:latest

Expand Down

0 comments on commit 3b4f127

Please sign in to comment.