20 lines
601 B
Docker
20 lines
601 B
Docker
FROM archlinux
|
|
|
|
ARG UID=1008
|
|
|
|
RUN pacman -Syu --noconfirm rtorrent php mediainfo unzip unrar ffmpeg && \
|
|
useradd --home-dir /seedbox --create-home --user-group --uid $UID seedbox && \
|
|
mkdir -p /data/downloads /seedbox/{log,watch/{start,load}} /var/run/seedbox /var/lib/seedbox && \
|
|
chown -R seedbox:seedbox /seedbox /data/downloads /var/run/seedbox /var/lib/seedbox
|
|
|
|
USER seedbox
|
|
|
|
VOLUME /seedbox/log /data/downloads /seedbox/watch/load /seedbox/watch/start /var/run/seedbox /var/lib/seedbox/sessions
|
|
|
|
EXPOSE 6889/udp
|
|
EXPOSE 6890/tcp
|
|
EXPOSE 6890/udp
|
|
|
|
WORKDIR /seedbox
|
|
|
|
ENTRYPOINT rtorrent
|