ditoow commited on
Commit
7e8fdab
·
verified ·
1 Parent(s): efd8954

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM python:3.11-slim
3
+
4
+ WORKDIR /app
5
+
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ COPY best.onnx .
10
+ COPY hf_space_server.py .
11
+
12
+ CMD ["uvicorn", "hf_space_server:app", "--host", "0.0.0.0", "--port", "7860"]