Files
socat-proxy/Dockerfile
2025-09-24 11:54:34 +00:00

12 lines
356 B
Docker

FROM alpine:latest
# Install socat and netcat in a single RUN command and clean up cache
RUN apk add --no-cache socat netcat-openbsd \
&& rm -rf /var/cache/apk/* /tmp/*
# Create socket directory and copy/set permissions in single layers
COPY entrypoint.sh VERSION /
RUN mkdir -p /socket \
&& chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]