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

Update auction bot docker #71

Merged
merged 3 commits into from
Aug 30, 2024
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
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 .
Loading