Skip to content

Commit

Permalink
run deluge as container root
Browse files Browse the repository at this point in the history
  • Loading branch information
gmega committed Dec 5, 2024
1 parent 5c23c9d commit b63b17a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions docker/deluge.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# It's easier to use miniconda or we'll have to build python-boost manually.
FROM continuumio/miniconda3:24.9.2-0

ARG UID=1000
ARG GID=1000

ENV DELUGE_APP=/opt/deluge
ENV DELUGE_CONFIG_DIR=/var/lib/deluge
ENV DELUGE_DOWNLOAD_DIR=${DELUGE_CONFIG_DIR}/downloads
Expand All @@ -17,11 +14,6 @@ ENV DELUGE_DAEMON_PASSWORD=password
ENV DELUGE_LOG_LEVEL=debug

RUN mkdir -p ${DELUGE_APP} ${DELUGE_CONFIG_DIR}
RUN groupadd -g ${GID} deluge_user \
&& useradd -u ${UID} -g ${GID} -s /bin/bash -m deluge_user \
&& chown -R deluge_user:deluge_user /var/lib/deluge /opt/deluge

USER deluge_user
WORKDIR ${DELUGE_APP}

# SHELL modifies the shell form to a login shell so we
Expand All @@ -39,7 +31,7 @@ RUN conda install -y anaconda::py-boost\
anaconda::gxx_linux-64\
anaconda:openssl

COPY --chown=deluge_user:deluge_user . ./
COPY . ./

RUN git submodule update --init --recursive &&\
cd vendor/libtorrent/bindings/python &&\
Expand Down

0 comments on commit b63b17a

Please sign in to comment.