andevs commited on
Commit
a5a2eb1
·
verified ·
1 Parent(s): 5526b4f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -16
Dockerfile CHANGED
@@ -2,27 +2,11 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies
6
- RUN apt-get update && apt-get install -y \
7
- gcc \
8
- g++ \
9
- curl \
10
- && rm -rf /var/lib/apt/lists/*
11
-
12
- # Copy requirements first (better caching)
13
  COPY requirements.txt .
14
-
15
- # Install Python dependencies
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Copy application
19
  COPY . .
20
 
21
- # Create non-root user
22
- RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
23
- USER appuser
24
-
25
  EXPOSE 7860
26
 
27
- # Run with uvicorn
28
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
5
  COPY requirements.txt .
 
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY . .
9
 
 
 
 
 
10
  EXPOSE 7860
11
 
 
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]