Zoro-147 commited on
Commit
dbf03c3
·
verified ·
1 Parent(s): 453e0ef

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -2,10 +2,17 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
5
  COPY . /app
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- # Hugging Face requires port 7860
9
  EXPOSE 7860
10
 
11
- CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port 7860"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies for Gemini
6
+ RUN apt-get update && apt-get install -y \
7
+ gcc \
8
+ python3-dev \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
  COPY . /app
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
+ # Expose port for Hugging Face
15
  EXPOSE 7860
16
 
17
+ # Run the application
18
+ CMD ["python", "main.py"]