yjernite HF Staff commited on
Commit
24294b7
·
verified ·
1 Parent(s): b3c1862

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Start from a standard Python 3.9 image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Copy the requirements file and install dependencies
8
+ # This is done first to leverage Docker's layer caching
9
+ COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Copy the rest of your backend application code
13
+ COPY . .
14
+
15
+ # Command to run your FastAPI app on the port configured in your README.md
16
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]