FROM alpine:3.18.2

RUN apk add --update bash socat

COPY tcp-proxy.sh /usr/bin/tcp-proxy

RUN chmod +x /usr/bin/tcp-proxy

ENTRYPOINT ["/usr/bin/tcp-proxy"]