Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Decrease docker image size #1694

Merged
merged 2 commits into from
Jun 13, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Decrease docker image size
rm commands need to be in the same layer as that adds whatever gets cached or is unneeded. This is because docker layers are append only.

Signed-off-by: Todd Brown <todd@proceedfinance.com>
  • Loading branch information
Todd Brown committed Jun 13, 2019
commit 0b48d7265c241623ec3b1614dc4d1eab5976ffcc
8 changes: 4 additions & 4 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -20,12 +20,12 @@ RUN go get -u github.com/golang/dep/cmd/dep \
&& go get -v -u github.com/gobuffalo/packr/v2/packr2 \
&& go get -v -u github.com/markbates/filetest \
&& go get -v -u github.com/markbates/grift \
&& go get -v -u github.com/markbates/refresh
&& go get -v -u github.com/markbates/refresh \
&& rm -rfv $GOPATH/src
mrbrownt marked this conversation as resolved.
Show resolved Hide resolved

RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0
# Install golangci
RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0

# clear out the src so that we can fill it with new versions
RUN rm -rfv $GOPATH/src && mkdir -p $BP
markbates marked this conversation as resolved.
Show resolved Hide resolved
WORKDIR $BP

ADD go.mod .