-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (31 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
44 lines (31 loc) · 1.12 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
FROM python:3.12-slim AS builder
WORKDIR /build
COPY requirements.txt .
RUN pip install --no-cache-dir --prefix=/install -r requirements.txt
# ---------------------------------------------------------------------------
FROM python:3.12-slim
LABEL maintainer="NullFeed" \
description="NullFeed - Self-Hosted YouTube Media Center Backend"
# Install runtime dependencies: ffmpeg, redis-server, and gosu for UID mapping
RUN apt-get update && \
apt-get install -y --no-install-recommends \
aria2 \
ffmpeg \
redis-server \
gosu \
curl && \
rm -rf /var/lib/apt/lists/*
# Copy Python packages from builder stage
COPY --from=builder /install /usr/local
WORKDIR /app
COPY . .
# Create data directories
RUN mkdir -p /data/media /data/db /data/config /data/thumbnails
# Make entrypoint executable
RUN chmod +x /app/scripts/entrypoint.sh
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
EXPOSE 8484
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD curl -f http://localhost:${TUBEVAULT_PORT:-8484}/api/health || exit 1
ENTRYPOINT ["/app/scripts/entrypoint.sh"]