Skip to content

Commit 24c8963

Browse files
author
gregnuj
committed
use alpine3.18 by default
1 parent ded5b40 commit 24c8963

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

builds/chihuahua.6.alpine.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh -x
2+
3+
BASEDIR=$(dirname "$0")
4+
DOCKER_DIR="${BASEDIR}/.."
5+
IMAGE="alpine"
6+
NAME="chihuahua"
7+
REPO="ChihuahuaChain/chihuahua"
8+
TAG="6"
9+
GO_VERSION="1.20"
10+
11+
cd "${DOCKER_DIR}"
12+
docker buildx build "." -f "${IMAGE}.Dockerfile" \
13+
--load \
14+
--progress plain \
15+
--tag "terraformlabs/${NAME}:${TAG}" \
16+
--platform "linux/amd64" \
17+
--build-arg "OS=linux" \
18+
--build-arg "ARCH=amd64" \
19+
--build-arg "APP_NAME=${NAME}" \
20+
--build-arg "BIN_NAME=${NAME}d" \
21+
--build-arg "BUILD_COMMAND=make install" \
22+
--build-arg "BUILD_TAGS=netgo ledger muslc" \
23+
--build-arg "COSMOS_BUILD_OPTIONS=" \
24+
--build-arg "GIT_TAG=v${TAG}" \
25+
--build-arg "GIT_REPO=${REPO}" \
26+
--build-arg "GO_VERSION=${GO_VERSION}" \
27+
--build-arg "MIMALLOC_VERSION=" \
28+
--build-arg "LDFLAGS=-w -s -linkmode=external -extldflags \"-Wl,-z,muldefs -static\"" \
29+
$@

0 commit comments

Comments
 (0)