Skip to content

Commit

Permalink
Remove some unnecessary steps from the build image
Browse files Browse the repository at this point in the history
Go caches builds for different tags now, so we don't need to pre-build them.

We don't use `dep` any more.

Signed-off-by: Bryan Boreham <[email protected]>
  • Loading branch information
bboreham committed Nov 25, 2019
1 parent bbba5ef commit beb54f1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions build-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
FROM golang:1.13.3-stretch
RUN apt-get update && apt-get install -y python-requests python-yaml file jq unzip protobuf-compiler libprotobuf-dev && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN go clean -i net && \
go install -tags netgo std && \
go install -race -tags netgo std
RUN curl -fsSLo shfmt https://github.com/mvdan/sh/releases/download/v1.3.0/shfmt_v1.3.0_linux_amd64 && \
echo "b1925c2c405458811f0c227266402cf1868b4de529f114722c2e3a5af4ac7bb2 shfmt" | sha256sum -c && \
chmod +x shfmt && \
Expand All @@ -15,8 +12,6 @@ RUN GO111MODULE=on go get -tags netgo \
github.com/gogo/protobuf/[email protected] \
github.com/gogo/protobuf/[email protected] && \
rm -rf /go/pkg /go/src
RUN curl -Ls https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep && \
chmod +x $GOPATH/bin/dep
COPY build.sh /
ENV GOCACHE=/go/cache
ENTRYPOINT ["/build.sh"]
Expand Down

0 comments on commit beb54f1

Please sign in to comment.