aboutsummaryrefslogtreecommitdiff
path: root/socat/Dockerfile
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2022-12-26 13:06:48 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2022-12-26 13:06:48 -0500
commit639e50050702d094a9464cf263995f7f19079eaf (patch)
treecd6502f6d5af67e5a887474ed3225af37a20cd02 /socat/Dockerfile
parent9bd432b5de3592f89d885deaff953418822acaa9 (diff)
downloadrshsh-639e50050702d094a9464cf263995f7f19079eaf.tar.gz
rshsh-639e50050702d094a9464cf263995f7f19079eaf.tar.xz
Add an option for embedded socat in the clientHEADmaster
Diffstat (limited to 'socat/Dockerfile')
-rw-r--r--socat/Dockerfile13
1 files changed, 13 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)
+