diff options
Diffstat (limited to 'socat')
| -rw-r--r-- | socat/Dockerfile | 13 | ||||
| -rwxr-xr-x | socat/build.sh | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/socat/Dockerfile b/socat/Dockerfile new file mode 100644 index 0000000..1cfd72a --- /dev/null +++ b/socat/Dockerfile @@ -0,0 +1,13 @@ +FROM docker.io/alpine:latest +ARG SOCAT_VERSION + +RUN apk add gcc make alpine-sdk openssl-dev openssl-libs-static + +RUN wget http://www.dest-unreach.org/socat/download/socat-$SOCAT_VERSION.tar.gz + +RUN tar xfzv socat-$SOCAT_VERSION.tar.gz + +WORKDIR /socat-$SOCAT_VERSION + +RUN env LDFLAGS=-static ./configure --enable-openssl && make -j$(nproc) + diff --git a/socat/build.sh b/socat/build.sh new file mode 100755 index 0000000..e50e5bf --- /dev/null +++ b/socat/build.sh @@ -0,0 +1,5 @@ +#!/bin/sh +SOCAT_VERSION=1.7.3.4 +image=socat-builder:latest +buildah build --build-arg SOCAT_VERSION=$SOCAT_VERSION -t $image . +podman run --rm -v "$(pwd)":/out/ $image cp -v /socat-$SOCAT_VERSION/socat /out/ |
