ClergeF commited on
Commit
a3051fd
·
verified ·
1 Parent(s): a67fa1c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Python 3.10 base image
2
+ FROM python:3.10
3
+
4
+ # Create a working directory
5
+ WORKDIR /code
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y git
9
+
10
+ # Copy requirements and install
11
+ COPY requirements.txt /code/requirements.txt
12
+ RUN pip install --no-cache-dir -r /code/requirements.txt
13
+
14
+ # Copy everything else (app.py)
15
+ COPY . /code
16
+
17
+ # Expose port for FastAPI
18
+ EXPOSE 7860
19
+
20
+ # Start FastAPI server
21
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]