-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (25 loc) · 1.16 KB
/
Copy pathDockerfile
File metadata and controls
36 lines (25 loc) · 1.16 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
FROM python:3.12-slim
LABEL org.opencontainers.image.title="Missingarr" \
org.opencontainers.image.description="Automated missing content & upgrade searcher for Sonarr and Radarr" \
org.opencontainers.image.url="https://github.com/gomaaz/missingarr" \
org.opencontainers.image.source="https://github.com/gomaaz/missingarr" \
org.opencontainers.image.licenses="MIT"
ARG APP_VERSION=dev
WORKDIR /app
COPY requirements.txt .
RUN apt-get update && apt-get install -y --no-install-recommends tzdata && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir -r requirements.txt
COPY backend/ ./backend/
COPY templates/ ./templates/
COPY static/ ./static/
COPY VERSION ./VERSION
VOLUME ["/data"]
ENV DATABASE_URL=/data/missingarr.db \
LOG_LEVEL=INFO \
TZ=Europe/Berlin \
VERSION=${APP_VERSION}
EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')"
# Single worker required — agents run as threads within one process
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]