MGZON commited on
Commit
2aaa9c0
·
verified ·
1 Parent(s): 300ccee

create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+
4
+ ENV PYTHONUNBUFFERED=1 \
5
+ HF_HUB_DISABLE_SYMLINKS_WARNING=1 \
6
+ PORT=7860
7
+
8
+ WORKDIR /app
9
+
10
+ COPY . /app
11
+
12
+ RUN pip install --upgrade pip && \
13
+ pip install -r requirements.txt
14
+
15
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]