dockerfiles/transmission/Dockerfile

29 lines
751 B
Docker
Raw Normal View History

2023-02-12 16:45:03 +01:00
FROM alpine:edge
2021-03-26 15:11:26 +01:00
RUN addgroup \
--gid 10001 \
transmission && \
adduser \
--uid 10000 \
--home /var/lib/transmission \
--ingroup transmission \
--disabled-password \
--shell /sbin/nologin \
2022-08-16 15:22:32 +02:00
transmission
RUN apk add --no-cache transmission-daemon
RUN mkdir -p \
2021-03-26 16:21:15 +01:00
/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
2021-03-26 15:11:26 +01:00
ENV TRANSMISSION_HOME /var/lib/transmission
USER transmission
2021-03-26 16:21:15 +01:00
WORKDIR /var/lib/transmission
2021-03-26 15:11:26 +01:00
2022-08-16 15:22:32 +02:00
CMD ["/usr/bin/transmission-daemon", "--foreground"]