build: fix build.Dockerfile + integrate into CircleCI

fixup of 080f2c0616
fixup of 4994b7a9ea
This commit is contained in:
Christian Schwarz
2019-11-20 20:57:50 +01:00
parent 5e17d7ba80
commit c24c327151
2 changed files with 32 additions and 2 deletions
+3 -2
View File
@@ -2,7 +2,8 @@ FROM golang:latest
RUN apt-get update && apt-get install -y \
python3-pip \
unzip
unzip \
gawk
ADD build.installprotoc.bash ./
RUN bash build.installprotoc.bash
@@ -22,7 +23,7 @@ RUN mkdir -p /.cache && chmod -R 0777 /.cache
WORKDIR /src
# Install build tools (e.g. protobuf generator, stringer) into $GOPATH/bin
ADD go.mod go.sum ./
ADD build/ /tmp/build
RUN /tmp/lazy.sh godep
RUN chmod -R 0777 /go