Hjgugugjhuhjggg commited on
Commit
78b48a5
·
verified ·
1 Parent(s): 021e9ef

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -19
Dockerfile CHANGED
@@ -1,20 +1,20 @@
1
- FROM python:3.11-slim-buster
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive
4
- ENV NUMBA_DISABLE_CACHE=1
5
- WORKDIR /app
6
-
7
- RUN apt-get update && apt-get upgrade -y
8
- RUN apt-get install libgl1-mesa-glx ffmpeg -y
9
-
10
- RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache/huggingface/hub
11
- RUN mkdir -p /.config/matplotlib && chmod -R 777 /.config/matplotlib
12
- RUN mkdir -p /nltk_data && chmod -R 777 /nltk_data
13
-
14
- RUN pip install --no-cache-dir accelerate retry asyncio basicsr beautifulsoup4 bs4 opencv-python deep-translator duckduckgo-search fastapi flask flask-cors facexlib ffmpeg-python gfpgan imageio imageio-ffmpeg langdetect librosa nltk numpy Pillow pydub pytorch-lightning PyYAML retry safetensors scikit-learn scipy scikit-image soundfile torch torchaudio torchvision tqdm wget yacs numba
15
-
16
- COPY . .
17
-
18
- EXPOSE 7860
19
-
20
  CMD ["python", "main.py"]
 
1
+ FROM python:3.11-slim-buster
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV NUMBA_DISABLE_CACHE=1
5
+ WORKDIR /app
6
+
7
+ RUN apt-get update && apt-get upgrade -y
8
+ RUN apt-get install libgl1-mesa-glx ffmpeg -y
9
+
10
+ RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache/huggingface/hub
11
+ RUN mkdir -p /.config/matplotlib && chmod -R 777 /.config/matplotlib
12
+ RUN mkdir -p /nltk_data && chmod -R 777 /nltk_data
13
+
14
+ RUN pip install --no-cache-dir faker accelerate retry asyncio basicsr beautifulsoup4 bs4 opencv-python deep-translator duckduckgo-search fastapi flask flask-cors facexlib ffmpeg-python gfpgan imageio imageio-ffmpeg langdetect librosa nltk numpy Pillow pydub pytorch-lightning PyYAML retry safetensors scikit-learn scipy scikit-image soundfile torch torchaudio torchvision tqdm wget yacs numba
15
+
16
+ COPY . .
17
+
18
+ EXPOSE 7860
19
+
20
  CMD ["python", "main.py"]