-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
64 lines (52 loc) · 1.9 KB
/
Copy pathDockerfile
File metadata and controls
64 lines (52 loc) · 1.9 KB
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
54
55
56
57
58
59
60
61
62
63
64
FROM ghcr.io/trueforge-org/python:3.14.6@sha256:feedc096668b059bd1db605e99996089a746f34cb565f4ab067124d3425d9cf8
COPY --from=ghcr.io/astral-sh/uv:0.11.25@sha256:1e3808aa9023d0980e7c15b1fa7c1ac16ff35925780cf5c459858b2d693f01a9 /uv /uvx /bin/
# set version label
ARG VERSION
ARG TARGETARCH
USER root
# environment settings
ENV HOME="/config" \
PYTHONIOENCODING=utf-8 \
TMPDIR=/run/flexget-temp \
UV_PROJECT_ENVIRONMENT=/app/venv \
UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy
RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
libffi-dev \
p7zip-full \
libboost-system-dev \
libboost-python-dev \
libstdc++6 \
nodejs && \
echo "**** install flexget ****" && \
mkdir -p /run/flexget-temp /data && \
mkdir -p /app/flexget && \
(curl -fL -o /tmp/flexget.tar.gz "https://github.com/Flexget/Flexget/archive/refs/tags/v${VERSION}.tar.gz" || curl -fL -o /tmp/flexget.tar.gz "https://github.com/Flexget/Flexget/archive/refs/tags/${VERSION}.tar.gz" || curl -fL -o /tmp/flexget.tar.gz "https://github.com/Flexget/Flexget/archive/refs/heads/main.tar.gz") && \
tar xf \
/tmp/flexget.tar.gz -C \
/app/flexget --strip-components=1 && \
cd /app/flexget && \
uv venv --clear /app/venv && \
uv run scripts/bundle_webui.py && \
uv sync --frozen --no-dev --no-cache --group=all && \
uv pip install --python /app/venv/bin/python --no-cache-dir "Flask-Compress<1.17" && \
uv pip install pip && \
echo "**** cleanup ****" && \
apt-get remove --purge -y build-essential libffi-dev && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf \
/tmp/* \
$HOME/.cache \
/var/lib/apt/lists/*
# add local files
USER apps
COPY --chmod=0755 . /
# ports and volumes
EXPOSE 5050
VOLUME /config
WORKDIR /config