forked from Drapersniper/Qbitrr
/
Dockerfile
26 lines (21 loc) · 777 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Pin Python to the latest supported version
# (This avoid it auto updating to a higher untested version)
FROM python:3.10
LABEL Name="qBitrr"
LABEL Maintainer="feramance"
LABEL Version="4.6.0"
LABEL org.opencontainers.image.source=https://github.com/feramance/qbitrr
# Env used by the script to determine if its inside a docker -
# if this is set to 69420 it will change the working dir for docker specific values
ENV QBITRR_DOCKER_RUNNING=69420
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PYTHONOPTIMIZE=1
RUN pip install --quiet -U pip wheel
WORKDIR /app
ADD ./requirements.fast.txt /app/requirements.fast.txt
RUN pip install --quiet -r requirements.fast.txt
COPY . /app
RUN pip install --quiet .
WORKDIR /config
ENTRYPOINT ["python", "-m", "qBitrr.main"]