Skip to content

Commit 4593f6c

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 dc7bb47 commit 4593f6c

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
@@ -4,9 +4,6 @@ RUN apt-get update && apt-get install -y curl python-requests python-yaml file j
44
RUN curl -sL https://deb.nodesource.com/setup_6.x | sh -
55
RUN apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
66
RUN npm install -g postcss-cli autoprefixer
7-
RUN go clean -i net && \
8-
go install -tags netgo std && \
9-
go install -race -tags netgo std
107
ENV HUGO_VERSION=v0.59.1
118
RUN git clone https://github.com/gohugoio/hugo.git --branch ${HUGO_VERSION} --depth 1 && \
129
cd hugo && go install --tags extended && cd ../ && \
@@ -22,8 +19,6 @@ RUN GO111MODULE=on go get -tags netgo \
2219
github.com/gogo/protobuf/[email protected] \
2320
github.com/gogo/protobuf/[email protected] && \
2421
rm -rf /go/pkg /go/src
25-
RUN curl -Ls https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep && \
26-
chmod +x $GOPATH/bin/dep
2722

2823
ENV NODE_PATH=/usr/lib/node_modules
2924
COPY build.sh /

0 commit comments

Comments
 (0)