2015-10-22 08:07:00 +02:00
|
|
|
# Couchpotato in a container
|
|
|
|
#
|
|
|
|
# docker run -d \
|
|
|
|
# --restart always \
|
|
|
|
# -p 5050:5050 \
|
|
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
|
|
# -v /volumes/couchpotato:/data \
|
2015-10-22 11:13:39 +02:00
|
|
|
# --link transmission:transmission \
|
2015-10-22 08:07:00 +02:00
|
|
|
# --name couchpotato \
|
|
|
|
# jess/couchpotato
|
|
|
|
#
|
2016-12-28 01:10:07 +01:00
|
|
|
FROM alpine:latest
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-10-22 08:07:00 +02:00
|
|
|
|
2018-03-23 14:06:05 +01:00
|
|
|
# machine parsable metadata, for https://github.com/pycampers/dockapt
|
|
|
|
LABEL "registry_image"="r.j3ss.co/couchpotato"
|
|
|
|
LABEL "docker_run_flags"="-d \
|
|
|
|
--restart always \
|
|
|
|
-p 5050:5050 \
|
|
|
|
-v /etc/localtime:/etc/localtime:ro \
|
|
|
|
-v /volumes/couchpotato:/data \
|
|
|
|
--link transmission:transmission \
|
|
|
|
--name couchpotato"
|
|
|
|
|
2015-10-22 08:07:00 +02:00
|
|
|
|
2016-12-28 01:10:07 +01:00
|
|
|
RUN apk add --no-cache \
|
2015-10-22 08:07:00 +02:00
|
|
|
ca-certificates \
|
2016-12-28 01:10:07 +01:00
|
|
|
gcc \
|
2015-10-22 08:07:00 +02:00
|
|
|
git \
|
2016-12-28 01:10:07 +01:00
|
|
|
libffi-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt-dev \
|
|
|
|
musl-dev \
|
|
|
|
openssl-dev \
|
2015-10-22 08:07:00 +02:00
|
|
|
python \
|
2016-12-28 01:10:07 +01:00
|
|
|
python-dev \
|
2017-01-11 01:14:50 +01:00
|
|
|
py2-pip \
|
2015-10-22 08:07:00 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2016-12-28 01:10:07 +01:00
|
|
|
RUN pip install \
|
|
|
|
lxml \
|
|
|
|
pyopenssl
|
|
|
|
|
2015-10-22 08:07:00 +02:00
|
|
|
EXPOSE 5050
|
|
|
|
|
2016-12-28 06:15:52 +01:00
|
|
|
ENV COUCHPOTATO_VERSION master
|
2016-12-28 01:10:07 +01:00
|
|
|
|
|
|
|
RUN git clone https://github.com/RuudBurger/CouchPotatoServer.git /usr/src/couchpotato \
|
|
|
|
&& ( \
|
|
|
|
cd /usr/src/couchpotato \
|
2016-12-28 06:15:52 +01:00
|
|
|
&& git checkout "${COUCHPOTATO_VERSION}" \
|
2016-12-28 01:10:07 +01:00
|
|
|
)
|
2015-10-22 08:07:00 +02:00
|
|
|
|
|
|
|
WORKDIR /usr/src/couchpotato
|
|
|
|
|
|
|
|
ENTRYPOINT [ "python", "CouchPotato.py", "--debug" ]
|
|
|
|
CMD [ "--data_dir", "/data" ]
|