Adive01 commited on
Commit
e945543
·
verified ·
1 Parent(s): 3112bb9

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install dependencies first for better caching
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
8
+
9
+ # Copy the rest of the application
10
+ COPY . .
11
+
12
+ # Expose the port
13
+ EXPOSE 8000
14
+
15
+ # Start the application
16
+ CMD ["uvicorn", "mlplo.api:app", "--host", "0.0.0.0", "--port", "8000"]