mirror of
https://github.com/termux/termux-docker.git
synced 2025-12-22 08:30:01 +00:00
fix OCI format error
This commit is contained in:
committed by
Henrik Grimler
parent
1a43803d78
commit
15a788b953
@@ -3,8 +3,9 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
OCI="docker"
|
OCI="docker"
|
||||||
|
OCI_ARG=""
|
||||||
case $1 in
|
case $1 in
|
||||||
-p|--podman) OCI="podman" ;;
|
-p|--podman) OCI="podman" ; OCI_ARG="--format docker" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -n "${TERMUX_DOCKER_USE_SUDO-}" ]; then
|
if [ -n "${TERMUX_DOCKER_USE_SUDO-}" ]; then
|
||||||
@@ -26,6 +27,7 @@ esac
|
|||||||
|
|
||||||
for arch in "${ARCHITECTURES[@]}"; do
|
for arch in "${ARCHITECTURES[@]}"; do
|
||||||
$SUDO $OCI build \
|
$SUDO $OCI build \
|
||||||
|
${OCI_ARG} \
|
||||||
-t 'termux/termux-docker:'"$arch" \
|
-t 'termux/termux-docker:'"$arch" \
|
||||||
-f Dockerfile \
|
-f Dockerfile \
|
||||||
--build-arg BOOTSTRAP_ARCH="$arch" \
|
--build-arg BOOTSTRAP_ARCH="$arch" \
|
||||||
|
|||||||
Reference in New Issue
Block a user