-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (46 loc) · 1.33 KB
/
Dockerfile
File metadata and controls
55 lines (46 loc) · 1.33 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
# syntax=docker/dockerfile:1
FROM docker.io/library/python:3.14-alpine3.23
ARG VERSION
ENV \
CRYPTOGRAPHY_DONT_BUILD_RUST=1 \
PIP_BREAK_SYSTEM_PACKAGES=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
PIP_ROOT_USER_ACTION=ignore \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
UV_NO_CACHE=true \
UV_SYSTEM_PYTHON=true \
UV_EXTRA_INDEX_URL="https://wheel-index.linuxserver.io/alpine-3.23/"
ENV NZBGET__PORT=6789
USER root
WORKDIR /app
RUN \
apk add --no-cache \
7zip \
bash \
ca-certificates \
catatonit \
coreutils \
curl \
jq \
lscpu \
nano \
tzdata \
&& \
curl -fsSL -o /tmp/nzbget.run \
"https://github.com/nzbgetcom/nzbget/releases/download/v${VERSION}/nzbget-${VERSION}-bin-linux.run" \
&& \
sh /tmp/nzbget.run --destdir /app \
&& rm -rf /app/7za /app/unrar /app/unrar7 \
&& pip install uv \
&& uv pip install apprise pynzb requests \
&& chown -R root:root /app && chmod -R 755 /app \
&& pip uninstall --yes uv \
&& rm -rf /root/.cache /root/.cargo /tmp/*
COPY . /
COPY --from=ghcr.io/linuxserver/unrar:latest /usr/bin/unrar-alpine /usr/bin/unrar
USER nobody:nogroup
WORKDIR /config
VOLUME ["/config"]
ENTRYPOINT ["/usr/bin/catatonit", "--", "/entrypoint.sh"]