| ADD alpine-minirootfs-3.24.0-x86.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache tini bash haproxy dante-server net-tools # buildkit |
| WORKDIR /usr/local/bin |
| RUN /bin/sh -c mkdir -p /etc/psiphon # buildkit |
| COPY /go/bin/psiphon /usr/local/bin/psiphon # buildkit |
| COPY assets/psiphon.config /etc/psiphon/ # buildkit |
| COPY haproxy-base.cfg /etc/haproxy/haproxy-base.cfg # buildkit |
| COPY start.sh /start.sh # buildkit |
| COPY healthcheck /usr/local/bin/rotator-healthcheck # buildkit |
| RUN /bin/sh -c chmod +x /usr/local/bin/psiphon /start.sh /usr/local/bin/rotator-healthcheck # buildkit |
| EXPOSE [1080/tcp] |
| HEALTHCHECK {Test:[CMD-SHELL rotator-healthcheck] Interval:30s Timeout:5s StartPeriod:3m0s StartInterval:0s Retries:3} |
| ENTRYPOINT ["/sbin/tini" "--"] |
| CMD ["/bin/bash" "/start.sh"] |