x86_64-alpine-transmission/Dockerfile
2020-10-14 16:06:14 +08:00

37 lines
1.0 KiB
Docker

# Base on latest (edge) alpine image
FROM harbor.ervine.dev/public/x86_64/alpine:v3.12
LABEL maintainer="Jonathan Ervine <docker@ervine.org>"
LABEL build-date="02 10 2020"
# Install updates
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
TORRENT_USER='torrent' \
TORRENT_UID='1027' \
TORRENT_GID='1027'
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
apk update && \
apk -U upgrade --ignore alpine-baselayout && \
apk -U add \
transmission-daemon && \
wget https://github.com/Secretmapper/combustion/archive/release.zip && \
unzip release.zip && \
mv combustion-release/* /usr/share/transmission/web/ && \
rmdir combustion-release && \
addgroup -g $TORRENT_GID $TORRENT_USER && \
adduser -D -u $TORRENT_UID -G $TORRENT_USER -H $TORRENT_USER && \
rm release.zip
RUN rm -rf /var/cache/apk/*
EXPOSE 9091 56451 56451/udp
VOLUME /config
#USER $TORRENT_USER
CMD [ "/usr/bin/transmission-daemon", "-f", "-g", "/config/" ]