mussie1212 commited on
Commit
5669ad3
·
verified ·
1 Parent(s): 4fde845

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM python:3.9-slim-bullseye
3
+
4
+ WORKDIR /app
5
+
6
+ RUN apt-get update && \
7
+ apt-get install -y --no-install-recommends \
8
+ libgl1 \
9
+ libglib2.0-0 \
10
+ libsm6 \
11
+ libxrender1 \
12
+ libxext6 \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ COPY requirements.txt .
16
+
17
+ RUN pip install --upgrade pip && \
18
+ pip install --no-cache-dir --timeout=1000 -r requirements.txt
19
+
20
+ COPY . .
21
+
22
+ EXPOSE 8000
23
+
24
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]