aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build-python.sh')
-rwxr-xr-xbuild-python.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/build-python.sh b/build-python.sh
new file mode 100755
index 0000000..6289c05
--- /dev/null
+++ b/build-python.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+NAME=python
+VERSION=${VERSION:-$(date -u +%Y%m%d)}
+VERSION_SUFFIX="-${VERSION}"
+
+ORG=${ORG:-gentoo}
+
+docker buildx build \
+ --file "${NAME}.Dockerfile" \
+ --build-arg ARCH="amd64" \
+ --build-arg MICROARCH="amd64" \
+ --tag "${ORG}/python" \
+ --platform "linux/amd64" \
+ --progress plain \
+ --load \
+ .