mirror of
https://github.com/icodex/docker-goedge.git
synced 2026-03-13 21:41:37 -05:00
init
This commit is contained in:
17
docker/build.sh
Executable file
17
docker/build.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERSION="1.3.3"
|
||||
case "$1" in
|
||||
"admin"|"node")
|
||||
RUN_TYPE=${1}
|
||||
;;
|
||||
*)
|
||||
echo "unknown type: ${1}"
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
|
||||
docker buildx create --use --platform=linux/arm64,linux/amd64 --name multi-platform-builder
|
||||
docker buildx inspect --bootstrap
|
||||
|
||||
docker buildx build -f Dockerfile.${RUN_TYPE} -t icodex/edge-${RUN_TYPE}:${VERSION} --build-arg VERSION=${VERSION} --platform=linux/arm64,linux/amd64 . --push
|
||||
Reference in New Issue
Block a user