Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: removing old build images #44

Merged
merged 1 commit into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Build the sequencer binary
FROM golang:1.20.3-alpine3.17 as sequencer
LABEL stage=sequencer-builder
RUN apk add --update make build-base curl git

RUN go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest

WORKDIR /app
COPY .git .git
COPY .gopath~ .gopath~
COPY Makefile .
COPY go.mod .
Expand All @@ -17,6 +17,7 @@ COPY tools tools
COPY x x
COPY cmd cmd
COPY testutil testutil
COPY .git .git

RUN make build

Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ docker-build: all | ; $(info $(M) building docker container) @
DOCKER_BUILDKIT=0 docker build -t "warpredstone/sequencer:latest" .
# DOCKER_BUILDKIT=0 docker build -t "warpredstone/sequencer:$(VERSION)" .
rm -rf vendor
docker images --filter label=stage=sequencer-builder -q | tail -n +2 | xargs docker image rm

.PHONY: docker-push
docker-push: all | ; $(info $(M) building docker container) @
Expand Down