ImageProcessing commited on
Commit
a9b84d4
1 Parent(s): e09fe9c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /code
4
+
5
+ RUN mkdir -p /.cache
6
+
7
+ RUN chmod -R 777 /.cache
8
+
9
+ RUN apt-get update && apt-get install -y libgl1-mesa-glx
10
+
11
+ COPY ./requirements.txt /code/requirements.txt
12
+
13
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
14
+
15
+ COPY . .
16
+
17
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]