warp-proxy/Dockerfile

22 lines
863 B
Docker
Raw Normal View History

2023-04-10 14:25:52 +00:00
ARG DEBIAN_RELEASE=bullseye
2023-04-27 11:05:20 +00:00
ARG LICENSE=''
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
2023-04-27 11:05:20 +00:00
ENV LICENSE=${LICENSE}
2021-06-19 20:39:18 +00:00
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" ]