- Use submodules for vendoring. - Don't go clean, now that everything is in .pkg. - sudo -E as we need the environment variables. - Install -race version of std so the tests can run without sudo. - Cache the build image on circle, use the rebuild-image script from tools.
9 lines
294 B
Docker
9 lines
294 B
Docker
FROM golang:1.5.2
|
|
ENV GO15VENDOREXPERIMENT 1
|
|
RUN apt-get update && apt-get install -y libpcap-dev python-requests time
|
|
RUN go get github.com/golang/lint/golint
|
|
RUN go clean -i net && go install -tags netgo std
|
|
RUN go install -race -tags netgo std
|
|
COPY build.sh /
|
|
ENTRYPOINT ["sh", "/build.sh"]
|