summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 3716acd..c9505c7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,9 +24,11 @@ FROM alpine:3.21
WORKDIR /app
# Install runtime dependencies
-RUN apk add --no-cache ffmpeg python3 py3-pip opus opus-dev ca-certificates && \
- pip3 install --no-cache-dir yt-dlp && \
- mkdir -p /app/temp
+RUN apk add --no-cache ffmpeg python3 py3-pip opus opus-dev ca-certificates \
+ && python3 -m venv /venv \
+ && . /venv/bin/activate \
+ && pip install --no-cache-dir yt-dlp \
+ && mkdir -p /app/temp
# Copy the binary from the builder stage
COPY --from=builder /app/ai/ai .