Paul Jacob Logas commited on
Commit
e699621
·
1 Parent(s): 4bdc340

Dockerfile updated

Browse files
Files changed (2) hide show
  1. Dockerfile +13 -2
  2. requirements.txt +62 -0
Dockerfile CHANGED
@@ -1,11 +1,22 @@
1
- FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
2
  EXPOSE 7860
3
 
4
  ENV GRADIO_SERVER_NAME=0.0.0.0
5
  WORKDIR /workspace
6
 
 
 
 
 
 
 
7
  ADD requirements.txt /workspace/requirements.txt
8
- RUN pip install -r requirements.txt
 
 
 
 
 
9
 
10
  ADD app.py /workspace/
11
  CMD [ "python" , "/workspace/app.py" ]
 
1
+ FROM python:slim
2
  EXPOSE 7860
3
 
4
  ENV GRADIO_SERVER_NAME=0.0.0.0
5
  WORKDIR /workspace
6
 
7
+ RUN apt-get update && \
8
+ apt-get install -y \
9
+ build-essential \
10
+ make \
11
+ gcc
12
+
13
  ADD requirements.txt /workspace/requirements.txt
14
+ RUN pip install --upgrade pip
15
+ RUN pip install --quiet --no-cache-dir -r requirements.txt
16
+
17
+ RUN apt-get remove -y --purge make gcc build-essential \
18
+ && apt-get autoremove -y \
19
+ && rm -rf /var/lib/apt/lists/*
20
 
21
  ADD app.py /workspace/
22
  CMD [ "python" , "/workspace/app.py" ]
requirements.txt ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiohttp==3.8.3
2
+ aiosignal==1.3.1
3
+ anyio==3.6.2
4
+ async-timeout==4.0.2
5
+ attrs==22.1.0
6
+ bcrypt==4.0.1
7
+ certifi==2022.9.24
8
+ cffi==1.15.1
9
+ charset-normalizer==2.1.1
10
+ click==8.1.3
11
+ contourpy==1.0.6
12
+ cryptography==38.0.3
13
+ cycler==0.11.0
14
+ emoji==2.2.0
15
+ fastapi==0.86.0
16
+ ffmpy==0.3.0
17
+ fonttools==4.38.0
18
+ frozenlist==1.3.3
19
+ fsspec==2022.10.0
20
+ gradio==3.9
21
+ h11==0.12.0
22
+ httpcore==0.15.0
23
+ httpx==0.23.0
24
+ idna==3.4
25
+ Jinja2==3.1.2
26
+ kiwisolver==1.4.4
27
+ linkify-it-py==1.0.3
28
+ markdown-it-py==2.1.0
29
+ MarkupSafe==2.1.1
30
+ matplotlib==3.6.2
31
+ mdit-py-plugins==0.3.1
32
+ mdurl==0.1.2
33
+ mtcnn-opencv==1.0.2
34
+ multidict==6.0.2
35
+ numpy==1.23.4
36
+ opencv-contrib-python-headless==4.6.0.66
37
+ orjson==3.8.1
38
+ packaging==21.3
39
+ pandas==1.5.1
40
+ paramiko==2.12.0
41
+ Pillow==9.3.0
42
+ pycparser==2.21
43
+ pycryptodome==3.15.0
44
+ pydantic==1.10.2
45
+ pydub==0.25.1
46
+ PyNaCl==1.5.0
47
+ pyparsing==3.0.9
48
+ python-dateutil==2.8.2
49
+ python-multipart==0.0.5
50
+ pytz==2022.6
51
+ PyYAML==6.0
52
+ requests==2.28.1
53
+ rfc3986==1.5.0
54
+ six==1.16.0
55
+ sniffio==1.3.0
56
+ starlette==0.20.4
57
+ typing_extensions==4.4.0
58
+ uc-micro-py==1.0.1
59
+ urllib3==1.26.12
60
+ uvicorn==0.19.0
61
+ websockets==10.4
62
+ yarl==1.8.1