stalkerrr commited on
Commit
df91a3b
·
verified ·
1 Parent(s): 1f3cbae

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -5
Dockerfile CHANGED
@@ -1,12 +1,19 @@
1
  FROM python:3.10-slim
2
 
 
 
 
 
 
 
3
  WORKDIR /app
4
- RUN pip install --no-cache-dir g4f[all] aiohttp beautifulsoup4 duckduckgo-search
5
 
6
- COPY start.sh /app/start.sh
7
- RUN chmod +x /app/start.sh
 
 
8
 
9
- ENV G4F_PORT=7860
10
  EXPOSE 7860
11
 
12
- CMD ["./start.sh"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ curl \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  WORKDIR /app
 
10
 
11
+ # Install G4F and FastAPI for the unified server
12
+ RUN pip install --no-cache-dir g4f[all] fastapi uvicorn requests
13
+
14
+ COPY . .
15
 
16
+ # HF Spaces default port
17
  EXPOSE 7860
18
 
19
+ CMD ["python", "main.py"]