2021-06-19 20:39:18 +00:00
|
|
|
ARG DEBIAN_RELEASE=buster
|
|
|
|
FROM docker.io/debian:$DEBIAN_RELEASE-slim
|
|
|
|
ARG DEBIAN_RELEASE
|
|
|
|
COPY pubkey.gpg entrypoint.sh /
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN true && \
|
|
|
|
apt update && \
|
|
|
|
apt install -y gnupg ca-certificates libcap2-bin haproxy && \
|
|
|
|
apt-key add /pubkey.gpg && \
|
|
|
|
echo "deb http://pkg.cloudflareclient.com/ $DEBIAN_RELEASE main" > /etc/apt/sources.list.d/cloudflare-client.list && \
|
|
|
|
apt update && \
|
|
|
|
apt install cloudflare-warp -y && \
|
|
|
|
apt clean -y && \
|
|
|
|
chmod +x /entrypoint.sh
|
2021-06-19 21:39:58 +00:00
|
|
|
COPY haproxy.cfg /etc/haproxy/haproxy.cfg
|
2021-06-19 20:39:18 +00:00
|
|
|
|
|
|
|
EXPOSE 40000/tcp
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|