2016-02-19 11:58:06 +00:00
|
|
|
FROM golang:1.6.0-alpine
|
|
|
|
|
|
|
|
RUN apk update && apk add git bash gcc
|
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
|
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
|
2016-02-19 11:58:06 +00:00
|
|
|
ENV DOCKER_VERSION 1.10.1
|
2015-09-27 13:56:53 +00:00
|
|
|
|
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
|
2016-01-27 10:00:13 +00:00
|
|
|
RUN glide up --quick
|
2015-09-22 09:29:41 +00:00
|
|
|
|
2015-09-15 19:38:54 +00:00
|
|
|
COPY . /go/src/github.com/emilevauge/traefik
|