forked from elasticdeeplearning/edl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (15 loc) · 743 Bytes
/
Copy pathDockerfile
File metadata and controls
15 lines (15 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM golang:1.8
RUN go get github.com/Masterminds/glide
RUN apt-get update && apt-get install -y git
WORKDIR $GOPATH/src/github.com/paddlepaddle
RUN mkdir -p $GOPATH/src/github.com/paddlepaddle/edl
# Add ENV http_proxy=[your proxy server] if needed
# run glide install before building go sources, so that
# if we change the code and rebuild the image can cost little time
ADD ./glide.yaml ./glide.lock $GOPATH/src/github.com/paddlepaddle/edl/
WORKDIR $GOPATH/src/github.com/paddlepaddle/edl
RUN glide install --strip-vendor
ADD . $GOPATH/src/github.com/paddlepaddle/edl
RUN go build -o /usr/local/bin/edl github.com/paddlepaddle/edl/cmd/edl
RUN rm -rf $GOPATH/src/github.com/paddlepaddle/edl
CMD ["edl"]