vortexa64 commited on
Commit
7b82efc
·
verified ·
1 Parent(s): 16da590

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -17
Dockerfile CHANGED
@@ -1,21 +1,8 @@
1
- FROM python:3.11-slim
2
 
3
- # Install dependencies
4
- RUN apt-get update && apt-get install -y \
5
- build-essential \
6
- && rm -rf /var/lib/apt/lists/*
7
-
8
- # Set workdir
9
  WORKDIR /app
 
10
 
11
- # Copy project files
12
- COPY . /app
13
-
14
- # Install Python requirements
15
- RUN pip install --no-cache-dir -r requirements.txt
16
-
17
- # Expose default port
18
- EXPOSE 7860
19
 
20
- # Run app
21
- CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
2
 
 
 
 
 
 
 
3
  WORKDIR /app
4
+ COPY . .
5
 
6
+ RUN pip install fastapi uvicorn python-multipart
 
 
 
 
 
 
 
7
 
8
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]