2016-01-14 14:41:10 +00:00
|
|
|
FROM golang:1.5.3
|
2015-09-15 19:38:54 +00:00
|
|
|
|
2015-10-13 18:19:34 +00:00
|
|
|
RUN go get github.com/Masterminds/glide
|
2015-09-15 19:38:54 +00:00
|
|
|
RUN go get github.com/mitchellh/gox
|
|
|
|
RUN go get github.com/tcnksm/ghr
|
2015-11-01 22:00:21 +00:00
|
|
|
RUN go get github.com/jteeuwen/go-bindata/...
|
2015-11-06 17:11:57 +00:00
|
|
|
RUN go get github.com/golang/lint/golint
|
2015-09-22 09:29:41 +00:00
|
|
|
|
2015-09-27 13:56:53 +00:00
|
|
|
# Which docker version to test on
|
|
|
|
ENV DOCKER_VERSION 1.6.2
|
|
|
|
|
2015-10-13 18:19:34 +00:00
|
|
|
# enable GO15VENDOREXPERIMENT
|
|
|
|
ENV GO15VENDOREXPERIMENT 1
|
|
|
|
|
2015-09-27 13:56:53 +00:00
|
|
|
# Download docker
|
|
|
|
RUN set -ex; \
|
|
|
|
curl https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION} -o /usr/local/bin/docker-${DOCKER_VERSION}; \
|
|
|
|
chmod +x /usr/local/bin/docker-${DOCKER_VERSION}
|
|
|
|
|
|
|
|
# Set the default Docker to be run
|
|
|
|
RUN ln -s /usr/local/bin/docker-${DOCKER_VERSION} /usr/local/bin/docker
|
|
|
|
|
2015-09-15 19:38:54 +00:00
|
|
|
WORKDIR /go/src/github.com/emilevauge/traefik
|
|
|
|
|
2015-10-13 18:19:34 +00:00
|
|
|
COPY glide.yaml glide.yaml
|
|
|
|
RUN glide up
|
2015-09-22 09:29:41 +00:00
|
|
|
|
2015-09-15 19:38:54 +00:00
|
|
|
COPY . /go/src/github.com/emilevauge/traefik
|