-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (45 loc) · 1.67 KB
/
Copy pathDockerfile
File metadata and controls
55 lines (45 loc) · 1.67 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
FROM ghcr.io/trueforge-org/python:3.14.6@sha256:feedc096668b059bd1db605e99996089a746f34cb565f4ab067124d3425d9cf8
ARG VENDOR
ARG VERSION
ENV \
BAZARR__PORT=6767 \
BAZARR_PACKAGE_AUTHOR=${VENDOR} \
BAZARR_PACKAGE_VERSION=${VERSION} \
BAZARR_VERSION=${VERSION}
USER root
WORKDIR /app
# Install runtime and build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
libxml2-16 \
libpq5 \
libxslt1.1 \
mediainfo \
unzip \
build-essential \
cargo \
libffi-dev \
libpq-dev \
libxml2-dev \
libxslt1-dev \
&& rm -rf /var/lib/apt/lists/*
# Download Bazarr release and install Python dependencies
RUN curl -fsSL -o /tmp/app.zip "https://github.com/morpheus65535/bazarr/releases/download/${VERSION}/bazarr.zip" \
&& unzip -q /tmp/app.zip -d /app/bin \
&& sed -i '/Pillow>/s/ --only-binary=Pillow//; /Pillow>/a --only-binary=Pillow' /app/bin/requirements.txt \
&& pip install uv \
&& uv pip install \
--requirement /app/bin/requirements.txt \
--requirement /app/bin/postgres-requirements.txt \
&& cp /etc/ssl/certs/ca-certificates.crt /etc/ca-certificates.crt \
&& chmod 644 /etc/ca-certificates.crt \
&& chown -R root:root /app && chmod -R 755 /app \
&& pip uninstall --yes uv \
&& rm -rf /root/.cache /root/.cargo /tmp/* /app/bin/bin
# Copy local files
# Copy unrar binary from LinuxServer image
COPY --from=ghcr.io/linuxserver/unrar:latest@sha256:22e6e76f2f2372a7cd6e046b10025e8bde8a04a2b2b2c6072fca6821da5747f7 /usr/bin/unrar-ubuntu /usr/bin/unrar
USER apps
COPY --chmod=0755 . /
WORKDIR /config
CMD [""]