2016-05-04 10:51:15 +00:00
|
|
|
FROM golang:1.6.2
|
2016-02-19 11:58:06 +00:00
|
|
|
|
2016-05-04 10:51:15 +00:00
|
|
|
RUN go get github.com/Masterminds/glide \
|
2016-03-22 00:32:02 +00:00
|
|
|
&& go get github.com/jteeuwen/go-bindata/... \
|
|
|
|
&& go get github.com/golang/lint/golint \
|
|
|
|
&& go get github.com/kisielk/errcheck
|
2015-09-22 09:29:41 +00:00
|
|
|
|
2015-09-27 13:56:53 +00:00
|
|
|
# Which docker version to test on
|
2016-05-12 15:18:58 +00:00
|
|
|
ARG DOCKER_VERSION=1.10.1
|
2015-10-13 18:19:34 +00:00
|
|
|
|
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
|
|
|
|
|
2016-02-24 15:43:39 +00:00
|
|
|
WORKDIR /go/src/github.com/containous/traefik
|
2015-09-15 19:38:54 +00:00
|
|
|
|
2015-10-13 18:19:34 +00:00
|
|
|
COPY glide.yaml glide.yaml
|
2016-03-15 22:27:07 +00:00
|
|
|
COPY glide.lock glide.lock
|
|
|
|
RUN glide install
|
2015-09-22 09:29:41 +00:00
|
|
|
|
2016-06-15 17:07:33 +00:00
|
|
|
COPY . /go/src/github.com/containous/traefik
|