2023-04-10 14:25:52 +00:00
|
|
|
ARG DEBIAN_RELEASE=bullseye
|
2021-06-19 20:39:18 +00:00
|
|
|
FROM docker.io/debian:$DEBIAN_RELEASE-slim
|
|
|
|
ARG DEBIAN_RELEASE
|
2023-04-10 14:25:52 +00:00
|
|
|
COPY entrypoint.sh /
|
2021-06-19 20:39:18 +00:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN true && \
|
|
|
|
apt update && \
|
2023-04-10 15:13:09 +00:00
|
|
|
apt install -y gnupg ca-certificates curl socat && \
|
2023-04-10 14:25:52 +00:00
|
|
|
curl https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg && \
|
|
|
|
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $DEBIAN_RELEASE main" | tee /etc/apt/sources.list.d/cloudflare-client.list && \
|
2021-06-19 20:39:18 +00:00
|
|
|
apt update && \
|
2023-04-10 14:25:52 +00:00
|
|
|
apt install cloudflare-warp -y --no-install-recommends && \
|
|
|
|
apt remove -y curl ca-certificates && \
|
2021-06-19 20:39:18 +00:00
|
|
|
apt clean -y && \
|
2023-04-10 14:25:52 +00:00
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
2021-06-19 20:39:18 +00:00
|
|
|
chmod +x /entrypoint.sh
|
|
|
|
|
2023-04-10 15:05:02 +00:00
|
|
|
EXPOSE 40000/tcp
|
2021-06-19 20:39:18 +00:00
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|