| ADD alpine-minirootfs-3.24.3-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk --upgrade --no-cache add socat # buildkit |
| ENTRYPOINT ["socat"] |
| LABEL org.opencontainers.image.title=socat-forward org.opencontainers.image.description=Production TCP/UDP port forwarder with port-range support, source-IP whitelisting and health endpoint org.opencontainers.image.version=2.0.0 org.opencontainers.image.licenses=MIT org.opencontainers.image.documentation=file:///usr/local/share/doc/socat-forward/README.md |
| RUN /bin/sh -c apk add --no-cache iptables # buildkit |
| COPY entrypoint.sh /usr/local/bin/entrypoint.sh # buildkit |
| COPY health.sh /usr/local/bin/health.sh # buildkit |
| RUN /bin/sh -c chmod +x /usr/local/bin/entrypoint.sh /usr/local/bin/health.sh # buildkit |
| COPY README.md /usr/local/share/doc/socat-forward/README.md # buildkit |
| USER root |
| ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |