eduliza commited on
Commit
302c254
·
verified ·
1 Parent(s): cb6e37a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Copy requirements and install
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # Copy the application code
11
+ COPY app.py .
12
+
13
+ # Expose port 7860 (Hugging Face default)
14
+ EXPOSE 7860
15
+
16
+ # Run the FastAPI app
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]