UB2002 commited on
Commit
0c2f424
·
1 Parent(s): c22a760
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use slim base image
2
+ FROM python:3.9-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy all project files into the container
8
+ COPY . /app
9
+
10
+ # Install dependencies and download spaCy model
11
+ RUN pip install --upgrade pip \
12
+ && pip install -r requirements.txt \
13
+ && python -m spacy download en_core_web_sm
14
+
15
+ # Expose the default port Hugging Face uses
16
+ EXPOSE 7860
17
+
18
+ # Run the FastAPI app via uvicorn on port 7860
19
+ CMD ["python", "app.py"]