diff options
| author | Bobby <[email protected]> | 2025-04-13 19:06:22 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-04-13 19:06:22 +0530 |
| commit | 3637a4d5c9a1c7e47cef87f4fafb50c8ccab1965 (patch) | |
| tree | ea486a852c3b3d3f013378e1852ae11f04162ae3 | |
| parent | aa5fe2abb9b5f5966d34f41a6a48228075551452 (diff) | |
| download | ai-3637a4d5c9a1c7e47cef87f4fafb50c8ccab1965.tar.xz ai-3637a4d5c9a1c7e47cef87f4fafb50c8ccab1965.zip | |
fix python compat with using venv
| -rw-r--r-- | Dockerfile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 . |
