fixed permissions issue

main
Ricard Illa 2021-03-26 16:21:15 +01:00
parent bfe291f188
commit d09ba4394b
1 changed files with 9 additions and 1 deletions

View File

@ -33,9 +33,17 @@ RUN addgroup \
--ingroup transmission \ --ingroup transmission \
--disabled-password \ --disabled-password \
--shell /sbin/nologin \ --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 ENV TRANSMISSION_HOME /var/lib/transmission
USER transmission USER transmission
WORKDIR /var/lib/transmission
CMD ["/usr/local/bin/transmission-daemon", "--foreground"] CMD ["/usr/local/bin/transmission-daemon", "--foreground"]