diff --git a/transmission/Dockerfile b/transmission/Dockerfile index 9e2b2f6..a4eee7f 100644 --- a/transmission/Dockerfile +++ b/transmission/Dockerfile @@ -33,9 +33,17 @@ RUN addgroup \ --ingroup transmission \ --disabled-password \ --shell /sbin/nologin \ - transmission + transmission && \ + mkdir -p \ + /var/lib/transmission/blocklists \ + /var/lib/transmission/downloads \ + /var/lib/transmission/incomplete \ + /var/lib/transmission/resume \ + /var/lib/transmission/torrents && \ + chown -R transmission:transmission /var/lib/transmission ENV TRANSMISSION_HOME /var/lib/transmission USER transmission +WORKDIR /var/lib/transmission CMD ["/usr/local/bin/transmission-daemon", "--foreground"]