MODLI commited on
Commit
ec73e90
·
verified ·
1 Parent(s): 1f990b2

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /code
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ libglib2.0-0 \
7
+ libsm6 \
8
+ libxext6 \
9
+ libxrender-dev \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ COPY ./requirements.txt /code/requirements.txt
13
+
14
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
+
16
+ COPY ./app.py /code/
17
+
18
+ CMD ["python", "app.py"]