-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (19 loc) · 827 Bytes
/
Dockerfile
File metadata and controls
22 lines (19 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:14.04.2
RUN apt-get update && apt-get install -y curl build-essential git-core
RUN curl -sSL https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | tar -C /usr/local -xz
ENV PATH /usr/local/go/bin:$PATH
ENV GOPATH /go
ENV CGO_ENABLED 0
RUN mkdir $GOPATH && cd $GOPATH && \
git clone https://github.com/fsouza/go-dockerclient.git && \
git clone https://github.com/docker/docker.git && \
cd go-dockerclient && git checkout a48995f21b2b00e5fc && cd .. && \
mkdir -p src/github.com/fsouza && \
mkdir -p src/github.com/docker && \
ln -s $(pwd)/go-dockerclient src/github.com/fsouza && \
ln -s $(pwd)/docker src/github.com/docker && \
go get github.com/fsouza/go-dockerclient && \
go get github.com/getgauge/mflag
COPY . /dlgrab/
RUN cd /dlgrab && make check && make binary
CMD /dlgrab/bin/dlgrab