simonfrnd commited on
Commit
f4b3d1e
·
verified ·
1 Parent(s): e846314

Create Dockerfile

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