mirror of
https://github.com/upx/upx.git
synced 2025-08-11 22:52:30 +08:00
17 lines
450 B
Bash
Executable File
17 lines
450 B
Bash
Executable File
#! /usr/bin/env bash
|
|
## vim:set ts=4 sw=4 et:
|
|
set -e; set -o pipefail
|
|
argv0=$0; argv0abs="$(readlink -fn "$argv0")"; argv0dir="$(dirname "$argv0abs")"
|
|
|
|
# create the image from Dockerfile
|
|
# using a rootless Podman container
|
|
|
|
image=upx-test-qemu4-alpine-20230708-v1
|
|
[[ $1 == --print-image ]] && echo "$image" && exit 0
|
|
|
|
podman build --squash -t "$image" -f "$argv0dir/Dockerfile" "$argv0dir"
|
|
|
|
podman image list "$image"
|
|
echo
|
|
podman image tree "$image"
|