SagarChhabriya commited on
Commit
65ca3fe
·
verified ·
1 Parent(s): 3bc09ef

Update Dockerfile

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