forked from Flexget/Flexget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (38 loc) · 1.23 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM docker.io/python:3.11-alpine
ENV PYTHONUNBUFFERED 1
RUN apk add --no-cache --upgrade \
ca-certificates \
nodejs \
build-base \
libffi-dev \
openssl-dev \
unzip && \
rm -rf /var/cache/apk/*
RUN pip install -U pip
COPY requirements-docker.txt /flexget/
RUN pip wheel --wheel-dir /dep-wheels -r /flexget/requirements-docker.txt
COPY dev_tools.py /flexget/
RUN pip install -f /dep-wheels click requests && python /flexget/dev_tools.py bundle-webui --version=v2
COPY . /flexget
RUN pip wheel --no-deps --wheel-dir /wheels -e /flexget
FROM docker.io/python:3.11-alpine
ENV PYTHONUNBUFFERED 1
RUN apk add --no-cache --upgrade \
ca-certificates \
nodejs \
tzdata && \
rm -rf /var/cache/apk/*
COPY --from=0 /dep-wheels /dep-wheels
COPY --from=0 /flexget/requirements-docker.txt /requirements-docker.txt
COPY --from=0 /wheels /wheels
RUN pip install -U pip && \
pip install --no-cache-dir \
--no-index \
-f /dep-wheels \
-f /wheels \
FlexGet \
-r /requirements-docker.txt && \
rm -rf /wheels /dep-wheels /requirements-docker.txt
VOLUME /config
WORKDIR /config
ENTRYPOINT ["flexget"]