Mystyc commited on
Commit
36e8299
·
1 Parent(s): 8c70434

Create Dockerfile

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