Skip to content

Commit

Permalink
chore: add static build on alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
hacheigriega authored and JeancarloBarrios committed Oct 30, 2023
1 parent 9c167f0 commit a306c8b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,22 @@ release-snapshot:
### Docker ###
###############################################################################
RUNNER_BASE_IMAGE_DISTROLESS := gcr.io/distroless/static-debian11
RUNNER_BASE_IMAGE_ALPINE := alpine:3.17

docker-build:
docker-static-build:
@DOCKER_BUILDKIT=1 docker build \
-t seda-chaind \
-t seda-chain/seda-chaind-static-distroless \
--build-arg GO_VERSION=$(GO_VERSION) \
--build-arg RUNNER_IMAGE=$(RUNNER_BASE_IMAGE_DISTROLESS) \
--build-arg GIT_VERSION=$(VERSION) \
--build-arg GIT_COMMIT=$(COMMIT) \
-f static.Dockerfile .

docker-static-build-alpine:
@DOCKER_BUILDKIT=1 docker build \
-t seda-chain/seda-chaind-static-alpine \
--build-arg GO_VERSION=$(GO_VERSION) \
--build-arg RUNNER_IMAGE=$(RUNNER_BASE_IMAGE_ALPINE) \
--build-arg GIT_VERSION=$(VERSION) \
--build-arg GIT_COMMIT=$(COMMIT) \
-f static.Dockerfile .

0 comments on commit a306c8b

Please sign in to comment.