pjxcharya commited on
Commit
53ec0ed
·
1 Parent(s): 11af358

Initial commit: severity classifier endpoint

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /code
6
+
7
+ # Install system dependencies (if needed)
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ gcc \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Copy project files
13
+ COPY . .
14
+
15
+ # Install Python dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Expose the port expected by Hugging Face
19
+ EXPOSE 7860
20
+
21
+ # Start the FastAPI app
22
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]