Skip to content

Commit

Permalink
Merge pull request #71 from Kava-Labs/update-auction-bot-docker
Browse files Browse the repository at this point in the history
Update auction bot docker
  • Loading branch information
boodyvo authored Aug 30, 2024
2 parents 767b05a + 0a1d264 commit 2e2d612
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# go-tools

Collection of Golang tools for the Kava blockchain
9 changes: 5 additions & 4 deletions auction-bot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM --platform=$BUILDPLATFORM golang:1.20-bookworm as build-env
FROM golang:1.21.9-bookworm as build-env

ARG TARGETOS TARGETARCH
ADD . /src
RUN cd /src/auction-bot && GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /main
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \
cd /src/auction-bot && go build -o /main

FROM debian:bookworm
FROM debian:bookworm-slim

RUN apt-get update \
&& apt-get install -y curl ca-certificates \
Expand Down
2 changes: 1 addition & 1 deletion auction-bot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ docker-login:

.PHONY: docker-build-and-push
docker-build-and-push:
cd ..; $(DOCKER) buildx build --platform linux/amd64 -t $(DOCKER_REPOSITORY_URL):$(COMMIT_ID_SHORT) -f auction-bot/Dockerfile --push .
cd ..; $(DOCKER) buildx build --platform linux/amd64 -t $(DOCKER_REPOSITORY_URL):$(COMMIT_ID_SHORT) -f auction-bot/Dockerfile --push .

0 comments on commit 2e2d612

Please sign in to comment.