Keras
adhyhh commited on
Commit
6d3bacb
·
verified ·
1 Parent(s): 8eb581a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install system dependencies required by OpenCV
4
+ RUN apt-get update && apt-get install -y \
5
+ libgl1-mesa-glx \
6
+ libglib2.0-0 \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ WORKDIR /code
10
+
11
+ # Copy requirements and install
12
+ COPY ./requirement.txt /code/requirements.txt
13
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
14
+
15
+ # Copy the rest of the application files
16
+ COPY . .
17
+
18
+ # Expose port 7860 (Hugging Face Spaces default port)
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]