summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-04-13 19:06:22 +0530
committerBobby <[email protected]>2025-04-13 19:06:22 +0530
commit3637a4d5c9a1c7e47cef87f4fafb50c8ccab1965 (patch)
treeea486a852c3b3d3f013378e1852ae11f04162ae3 /Dockerfile
parentaa5fe2abb9b5f5966d34f41a6a48228075551452 (diff)
downloadai-3637a4d5c9a1c7e47cef87f4fafb50c8ccab1965.tar.xz
ai-3637a4d5c9a1c7e47cef87f4fafb50c8ccab1965.zip
fix python compat with using venv
Diffstat (limited to 'Dockerfile')
-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 .