PawinC commited on
Commit
bab06a2
1 Parent(s): 212a1b1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10.12-slim
2
+
3
+ WORKDIR /
4
+
5
+ RUN apt-get update && apt-get install -y build-essential
6
+
7
+ COPY requirements.txt /requirements.txt
8
+
9
+ RUN pip install -r requirements.txt
10
+
11
+ COPY app /app
12
+
13
+ COPY models /models
14
+
15
+ EXPOSE 7860
16
+
17
+ ENV PYTHONUNBUFFERED=1
18
+
19
+ CMD ["uvicorn", "app.main:app", "--port", "7860", "--host", "0.0.0.0"]