Fix worker dependency and slim image
All checks were successful
build-push / docker (push) Successful in 8m44s

This commit is contained in:
AI Assistant
2026-03-12 15:28:30 +09:00
parent 6f89d44bfa
commit 5d0ba114ee
3 changed files with 14 additions and 6 deletions

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
.git
.gitea
db/*.db
downloads/*
!downloads/.gitkeep
worker/__pycache__
*.pyc

View File

@@ -6,7 +6,9 @@ COPY backend ./backend
RUN go build -o /out/ai-media-hub ./backend RUN go build -o /out/ai-media-hub ./backend
FROM python:3.12-slim-bookworm FROM python:3.12-slim-bookworm
ENV APP_ROOT=/app ENV APP_ROOT=/app \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PYTHONDONTWRITEBYTECODE=1
WORKDIR /app WORKDIR /app
RUN apt-get update \ RUN apt-get update \
@@ -14,14 +16,13 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY worker/requirements.txt /app/worker/requirements.txt COPY worker/requirements.txt /app/worker/requirements.txt
RUN pip install --no-cache-dir -r /app/worker/requirements.txt RUN python -m pip install --no-cache-dir --upgrade pip \
&& python -m pip install --no-cache-dir -r /app/worker/requirements.txt
COPY --from=go-builder /out/ai-media-hub /app/ai-media-hub COPY --from=go-builder /out/ai-media-hub /app/ai-media-hub
COPY backend /app/backend
COPY worker /app/worker COPY worker /app/worker
COPY frontend /app/frontend COPY frontend /app/frontend
COPY db /app/db RUN mkdir -p /app/db /app/downloads
COPY downloads /app/downloads
EXPOSE 8080 EXPOSE 8080

View File

@@ -1 +1 @@
yt-dlp==2026.2.15 yt-dlp==2026.3.3