From 6acb397d5dd0f7c7b7763de90fc5c38720b32668 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Mon, 19 Jun 2017 13:45:01 +0000 Subject: [PATCH] Install yapf and flake8 required by build-tools lint --- backend/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 1b5333b53..c11d99768 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,10 +1,10 @@ FROM ubuntu:yakkety ENV GOPATH /go ENV GOVERSION 1.8.3 -ENV PATH /go/bin:/usr/local/go/bin:/usr/bin:/bin:/usr/sbin:/sbin +ENV PATH /go/bin:/usr/local/go/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin ENV SCOPE_SKIP_UI_ASSETS true RUN apt-get update && \ - apt-get install -y libpcap-dev python-requests time file shellcheck git gcc-arm-linux-gnueabihf curl build-essential && \ + apt-get install -y libpcap-dev python-requests time file shellcheck git gcc-arm-linux-gnueabihf curl build-essential python-pip && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN curl -Ls https://storage.googleapis.com/golang/go${GOVERSION}.linux-amd64.tar.gz | tar xz -C /usr/local RUN go clean -i net && \ @@ -22,5 +22,6 @@ RUN go get -tags netgo \ github.com/client9/misspell/cmd/misspell && \ chmod a+wr --recursive /usr/local/go && \ rm -rf /go/pkg/ /go/src/ +RUN pip install yapf==0.16.2 flake8==3.3.0 COPY build.sh / ENTRYPOINT ["/build.sh"]