use transmission packaged by alpine

main
Ricard Illa 2022-08-16 15:22:32 +02:00
parent e19c29924f
commit 47360839bc
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 7 additions and 32 deletions

View File

@ -1,32 +1,4 @@
FROM alpine:3.14 FROM alpine:3.16
ENV VER 3.00
RUN apk add --no-cache --virtual .build-deps \
curl \
cmake \
make \
gcc \
g++ \
musl-dev \
curl-dev \
automake \
autoconf \
libtool && \
mkdir -p /usr/local/src && \
curl -L \
--output "/usr/local/src/transmission-${VER}.tar.xz" \
"https://github.com/transmission/transmission-releases/raw/master/transmission-${VER}.tar.xz" && \
tar -xf "/usr/local/src/tranmission-${VER}.tar.xz" -C /usr/local/src && \
mkdir -p /usr/local/src/transmission/build && \
cd /usr/local/src/transmission/build && \
cmake .. && \
make && \
make install && \
cd / && \
rm -r /usr/local/src && \
apk del .build-deps && \
apk add --no-cache curl
RUN addgroup \ RUN addgroup \
--gid 10001 \ --gid 10001 \
@ -37,8 +9,11 @@ RUN addgroup \
--ingroup transmission \ --ingroup transmission \
--disabled-password \ --disabled-password \
--shell /sbin/nologin \ --shell /sbin/nologin \
transmission && \ transmission
mkdir -p \
RUN apk add --no-cache transmission-daemon
RUN mkdir -p \
/var/lib/transmission/blocklists \ /var/lib/transmission/blocklists \
/var/lib/transmission/downloads \ /var/lib/transmission/downloads \
/var/lib/transmission/incomplete \ /var/lib/transmission/incomplete \
@ -50,4 +25,4 @@ ENV TRANSMISSION_HOME /var/lib/transmission
USER transmission USER transmission
WORKDIR /var/lib/transmission WORKDIR /var/lib/transmission
CMD ["/usr/local/bin/transmission-daemon", "--foreground"] CMD ["/usr/bin/transmission-daemon", "--foreground"]