seedbox/Dockerfile
Your Name 53dae5fc69 fix
2023-04-28 08:43:05 -06:00

22 lines
788 B
Docker

FROM docker.io/debian:testing
RUN export TERM=xterm
RUN apt update;apt install -y bash curl git python3 build-essential screen rtorrent unzip wget wireguard wireguard-tools iproute2 procps
COPY nodesource /etc/apt/preferences.d/
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -;apt update; apt -y install nodejs
RUN mkdir /srv/torrent;mkdir /srv/torrent/downloads;mkdir /srv/torrent/.session
WORKDIR /srv/torrent
RUN wget https://github.com/jesec/flood/archive/refs/tags/v4.7.0.zip;unzip v4.7.0.zip;mv flood-4.7.0 flood
WORKDIR /srv/torrent/flood
RUN sed -i 's/127.0.0.1/0.0.0.0/g' /srv/torrent/flood/config.ts
RUN npm install
RUN npx browserslist@latest --update-db
RUN npm run build
COPY .rtorrent.rc /opt/
ADD start.sh /
COPY wg0.conf /etc/wireguard/
CMD bash /start.sh