triflix commited on
Commit
1109a60
·
verified ·
1 Parent(s): b4af4fe

Create Dockerfile

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