Skip to content

Commit

Permalink
Merge pull request #44 from warp-contracts/szynek/remove-old-build-im…
Browse files Browse the repository at this point in the history
…ages

Docker: removing old build images
  • Loading branch information
szynwelski authored Jul 11, 2023
2 parents 787b901 + 8f50eed commit b7f5931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit b7f5931

Please sign in to comment.