Skip to content

Commit beb54f1

Browse files
committed
Remove some unnecessary steps from the build image
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]>
1 parent bbba5ef commit beb54f1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

build-image/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
FROM golang:1.13.3-stretch
22
RUN apt-get update && apt-get install -y python-requests python-yaml file jq unzip protobuf-compiler libprotobuf-dev && \
33
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
4-
RUN go clean -i net && \
5-
go install -tags netgo std && \
6-
go install -race -tags netgo std
74
RUN curl -fsSLo shfmt https://github.com/mvdan/sh/releases/download/v1.3.0/shfmt_v1.3.0_linux_amd64 && \
85
echo "b1925c2c405458811f0c227266402cf1868b4de529f114722c2e3a5af4ac7bb2 shfmt" | sha256sum -c && \
96
chmod +x shfmt && \
@@ -15,8 +12,6 @@ RUN GO111MODULE=on go get -tags netgo \
1512
github.com/gogo/protobuf/[email protected] \
1613
github.com/gogo/protobuf/[email protected] && \
1714
rm -rf /go/pkg /go/src
18-
RUN curl -Ls https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep && \
19-
chmod +x $GOPATH/bin/dep
2015
COPY build.sh /
2116
ENV GOCACHE=/go/cache
2217
ENTRYPOINT ["/build.sh"]

0 commit comments

Comments
 (0)