File size: 459 Bytes
47d8f66
 
c41cef4
 
d35784e
 
c41cef4
 
 
47d8f66
 
 
 
d35784e
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.11-slim

# Install Node.js, npm, and ffmpeg (fixes the pydub warning)
RUN apt-get update && apt-get install -y --no-install-recommends nodejs npm ffmpeg \
    && rm -rf /var/lib/apt/lists/*

# Pre-install localtunnel globally (npx will use it without downloading each time)
RUN npm install -g localtunnel

RUN pip install --no-cache-dir g4f[all]

EXPOSE 7860

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

CMD ["/entrypoint.sh"]