Fix worker dependency and slim image
All checks were successful
build-push / docker (push) Successful in 8m44s
All checks were successful
build-push / docker (push) Successful in 8m44s
This commit is contained in:
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@@ -0,0 +1,7 @@
|
||||
.git
|
||||
.gitea
|
||||
db/*.db
|
||||
downloads/*
|
||||
!downloads/.gitkeep
|
||||
worker/__pycache__
|
||||
*.pyc
|
||||
11
Dockerfile
11
Dockerfile
@@ -6,7 +6,9 @@ COPY backend ./backend
|
||||
RUN go build -o /out/ai-media-hub ./backend
|
||||
|
||||
FROM python:3.12-slim-bookworm
|
||||
ENV APP_ROOT=/app
|
||||
ENV APP_ROOT=/app \
|
||||
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update \
|
||||
@@ -14,14 +16,13 @@ RUN apt-get update \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
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 backend /app/backend
|
||||
COPY worker /app/worker
|
||||
COPY frontend /app/frontend
|
||||
COPY db /app/db
|
||||
COPY downloads /app/downloads
|
||||
RUN mkdir -p /app/db /app/downloads
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
yt-dlp==2026.2.15
|
||||
yt-dlp==2026.3.3
|
||||
|
||||
Reference in New Issue
Block a user