um41r commited on
Commit
9325bd2
·
verified ·
1 Parent(s): b423626

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /code
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ # Copy your model files
9
+ COPY model.safetensors .
10
+ COPY birefnet.py .
11
+ COPY BiRefNet_config.py .
12
+
13
+ # Copy app
14
+ COPY app.py .
15
+
16
+ EXPOSE 7860
17
+
18
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]