forked from Flexget/Flexget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (41 loc) · 1.15 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
49
50
51
52
53
FROM python:3-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/*
WORKDIR /wheels
COPY . /flexget
RUN pip install -U pip && \
pip wheel -e /flexget && \
pip wheel transmissionrpc && \
pip wheel deluge-client && \
pip wheel cloudscraper
WORKDIR /flexget-ui-v2
RUN wget https://github.com/Flexget/webui/releases/latest/download/dist.zip && \
unzip dist.zip && \
rm dist.zip
FROM python:3-alpine
ENV PYTHONUNBUFFERED 1
RUN apk add --no-cache --upgrade \
ca-certificates \
nodejs && \
rm -rf /var/cache/apk/*
COPY --from=0 /wheels /wheels
RUN pip install -U pip && \
pip install --no-cache-dir \
--no-index \
-f /wheels \
FlexGet \
transmissionrpc \
deluge-client \
cloudscraper && \
rm -rf /wheels
COPY --from=0 /flexget-ui-v2 /usr/local/lib/python3.8/site-packages/flexget/ui/v2/
RUN mkdir /root/.flexget
VOLUME /root/.flexget
ENTRYPOINT ["flexget"]