Openyx commited on
Commit
c41cef4
·
verified ·
1 Parent(s): 4882aa6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,16 +1,17 @@
1
  FROM python:3.11-slim
2
 
3
- # Install SSH client (required for localhost.run tunnel)
4
- RUN apt-get update && apt-get install -y --no-install-recommends openssh-client \
5
  && rm -rf /var/lib/apt/lists/*
6
 
 
 
 
7
  RUN pip install --no-cache-dir g4f[all]
8
 
9
  EXPOSE 7860
10
 
11
- # Copy the startup script
12
  COPY entrypoint.sh /entrypoint.sh
13
  RUN chmod +x /entrypoint.sh
14
 
15
- # Start both the API server and the tunnel
16
  CMD ["/entrypoint.sh"]
 
1
  FROM python:3.11-slim
2
 
3
+ # Install Node.js, npm, and ffmpeg (fixes the pydub warning)
4
+ RUN apt-get update && apt-get install -y --no-install-recommends nodejs npm ffmpeg \
5
  && rm -rf /var/lib/apt/lists/*
6
 
7
+ # Pre-install localtunnel globally (npx will use it without downloading each time)
8
+ RUN npm install -g localtunnel
9
+
10
  RUN pip install --no-cache-dir g4f[all]
11
 
12
  EXPOSE 7860
13
 
 
14
  COPY entrypoint.sh /entrypoint.sh
15
  RUN chmod +x /entrypoint.sh
16
 
 
17
  CMD ["/entrypoint.sh"]