From b4f7160c2f88bedb158b8e30258a614be780e2b3 Mon Sep 17 00:00:00 2001 From: 3np <3np> Date: Tue, 1 Mar 2022 13:01:40 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..898dcaea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM python:3-slim-bullseye AS builder + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get -y install \ + lsb-release apt-transport-https wget pgp && \ + echo "deb [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org $(lsb_release -cs) main" >> /etc/apt/sources.list && \ + wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/tor-archive-keyring.gpg && \ + apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get -y install \ + deb.torproject.org-keyring \ + obfs4proxy \ + tor && \ + apt-get purge -y apt-transport-https wget pgp apt-transport-https lsb-release && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +ADD ./cli /app/ +WORKDIR /app +RUN pip3 install --no-cache-dir . + +ENTRYPOINT [ "/usr/local/bin/onionshare" ]