AlyanAkram commited on
Commit
ebb658b
·
verified ·
1 Parent(s): 0e51466

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # Set the working directory
4
+ WORKDIR /app
5
+
6
+ # Copy all files
7
+ COPY . /app
8
+
9
+ # Upgrade pip and install dependencies
10
+ RUN pip install --upgrade pip
11
+ RUN pip install -r requirements.txt
12
+
13
+ # Download required nltk data
14
+ RUN python -c "import nltk; nltk.download('punkt')"
15
+
16
+ # Expose the default Hugging Face port
17
+ EXPOSE 7860
18
+
19
+ # Start the FastAPI app
20
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]