Skip to content
Snippets Groups Projects
Verified Commit b1ed876c authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

fix: correct issues with dockerfile

parent 2097c369
No related branches found
No related tags found
No related merge requests found
Pipeline #2884 passed
......@@ -51,6 +51,16 @@ RUN apk add --no-cache \
COPY --from=builder /build/usr/bin/rtorrent /usr/bin/rtorrent
COPY --from=builder /build/usr/lib/libtorrent.so* /usr/lib/
RUN adduser -u 1000 -D rtorrent && \
addgroup rtorrent rtorrent && \
mkdir -p /data && chown rtorrent /data && \
mkdir -p /private && chown rtorrent /private
USER rtorrent
COPY src/rtorrent.rc /rtorrent.rc
COPY entrypoint.sh /entrypoint.sh
ENV RT_TRACKER_UDP="yes"
ENV RT_DHT_MODE="disable"
ENV RT_DHT_PORT=49160
......@@ -67,16 +77,6 @@ ENV RT_DAEMON="true"
ENV RT_XMLRPC_BIND="0.0.0.0"
ENV RT_XMLRPC_PORT="5000"
RUN adduser -u 1000 -D rtorrent && \
addgroup rtorrent rtorrent && \
mkdir /data && chown rtorrent /data && \
mkdir /private && chown rtorrent /private
USER rtorrent
COPY src/rtorrent.rc /rtorrent.rc
COPY entrypoint.sh /entrypoint.sh
VOLUME ["/data"]
VOLUME ["/tmp"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment