aboutsummaryrefslogtreecommitdiff
path: root/build/socat
diff options
context:
space:
mode:
Diffstat (limited to 'build/socat')
-rw-r--r--build/socat/Dockerfile2
-rw-r--r--build/socat/build.sh15
2 files changed, 14 insertions, 3 deletions
diff --git a/build/socat/Dockerfile b/build/socat/Dockerfile
index 1850917..e872ec8 100644
--- a/build/socat/Dockerfile
+++ b/build/socat/Dockerfile
@@ -1,5 +1,5 @@
FROM alpine:latest
-RUN apk add gcc libc-dev make
+RUN apk add gcc libc-dev make openssl-dev
diff --git a/build/socat/build.sh b/build/socat/build.sh
index d0d6ef9..fbc70d9 100644
--- a/build/socat/build.sh
+++ b/build/socat/build.sh
@@ -1,6 +1,17 @@
#!/bin/sh
+
+build=docker
+if [ -x "$(command -v buildah)" ] ; then
+ build=buildah
+fi
+
+run=docker
+if [ -x "$(command -v podman)" ] ; then
+ run=podman
+fi
+
image="socat-builder"
-docker build -t "$image" .
+$build build -t "$image" .
if ! [ -d build ] ; then
@@ -10,7 +21,7 @@ fi
cp build-int.sh build/build.sh
echo "chown -R $(id -u):$(id -g) /build" >> build/build.sh
-docker run -it \
+$run run --rm -it \
-v `pwd`/build:/build \
"$image" \
sh /build/build.sh