mirror of https://github.com/l3uddz/traktarr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
805 B
31 lines
805 B
7 years ago
|
FROM python:3.6-alpine3.7
|
||
|
|
||
7 years ago
|
# Default branch to master
|
||
|
ARG BRANCH=master
|
||
|
|
||
7 years ago
|
ENV \
|
||
|
APP_DIR=traktarr \
|
||
7 years ago
|
BRANCH=${BRANCH} \
|
||
7 years ago
|
TRAKTARR_CONFIG=/config/config.json \
|
||
|
TRAKTARR_LOGFILE=/config/traktarr.log
|
||
|
|
||
|
RUN \
|
||
|
echo "** Upgrade all packages **" && \
|
||
|
apk --no-cache -U upgrade && \
|
||
|
echo "** Install OS dependencies **" && \
|
||
|
apk --no-cache -U add git && \
|
||
7 years ago
|
echo "** Get Traktarr branch: ${BRANCH} **" && \
|
||
7 years ago
|
git clone --depth 1 --branch ${BRANCH} https://github.com/l3uddz/traktarr.git /${APP_DIR} && \
|
||
|
echo "** Install PIP dependencies **" && \
|
||
|
pip install --no-cache-dir --upgrade pip setuptools && \
|
||
|
pip install --no-cache-dir --upgrade -r /${APP_DIR}/requirements.txt
|
||
|
|
||
|
# Change directory
|
||
|
WORKDIR /${APP_DIR}
|
||
|
|
||
|
# Config volume
|
||
|
VOLUME /config
|
||
|
|
||
|
# Entrypoint
|
||
|
ENTRYPOINT ["python", "traktarr.py"]
|