onionshare server
374
This Docker image is based on Debian Bookworm and includes the necessary dependencies to run OnionShare CLI for secure and anonymous file sharing over the Tor network. The image installs Tor and OnionShare CLI, allowing you to easily share and receive files through the Tor network.
OPTIONS environment variable for flexible usage.docker run --rm -it --name onionshare -e OPTIONS="--no-autostop-sharing --public" -v ~/onionshare:/onionshare davidjosearaujo/onionshare
This command runs the OnionShare service with the --no-autostop-sharing and --public options, mapping your local ~/onionshare directory to the container's /onionshare directory.
--no-install-recommends flag during the package installation.FROM debian:bookworm
RUN apt update && \
apt-get install -yq --no-install-recommends tor python3-pip && \
pip install --break-system-packages onionshare-cli
ENV OPTIONS=""
VOLUME [ "/onionshare" ]
ENTRYPOINT mkdir onionshare/sent && \
onionshare-cli ${OPTIONS} -v --data-dir /onionshare/received /onionshare/sent 2>&1 | tee /onionshare/stdout.log
Content type
Image
Digest
sha256:2fa41ee0c…
Size
148.2 MB
Last updated
over 2 years ago
docker pull davidjosearaujo/onionshare