Rohannk commited on
Commit
e801ed0
·
verified ·
1 Parent(s): e32f22f

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
+
5
+ WORKDIR /app
6
+
7
+ COPY . .
8
+
9
+ RUN pip install --no-cache-dir --upgrade pip \
10
+ && pip install fastapi uvicorn
11
+
12
+ EXPOSE 7860
13
+
14
+ CMD ["uvicorn", "inference:app", "--host", "0.0.0.0", "--port", "7860"]