Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +50 -50
Dockerfile
CHANGED
@@ -1,51 +1,51 @@
|
|
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 /GPT2 && chmod -R 777 /GPT2
|
13 |
-
RUN mkdir -p /nltk_data && chmod -R 777 /nltk_data
|
14 |
-
RUN mkdir -p /TranslationModel \
|
15 |
-
/CodeGenModel \
|
16 |
-
/ImageGenModel \
|
17 |
-
/MusicGenModel \
|
18 |
-
/SentimentModel \
|
19 |
-
/SummarizationModel \
|
20 |
-
/STTModel \
|
21 |
-
/TTSModel \
|
22 |
-
/ImageTo3DModel \
|
23 |
-
/TextToVideoModel \
|
24 |
-
/GFPGAN \
|
25 |
-
/RestoreFormer \
|
26 |
-
/CodeFormer \
|
27 |
-
/RealESRGAN \
|
28 |
-
/checkpoints && \
|
29 |
-
chmod -R 777 /TranslationModel \
|
30 |
-
/CodeGenModel \
|
31 |
-
/ImageGenModel \
|
32 |
-
/MusicGenModel \
|
33 |
-
/SentimentModel \
|
34 |
-
/SummarizationModel \
|
35 |
-
/STTModel \
|
36 |
-
/TTSModel \
|
37 |
-
/ImageTo3DModel \
|
38 |
-
/TextToVideoModel \
|
39 |
-
/GFPGAN \
|
40 |
-
/RestoreFormer \
|
41 |
-
/CodeFormer \
|
42 |
-
/RealESRGAN \
|
43 |
-
/checkpoints
|
44 |
-
|
45 |
-
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
|
46 |
-
|
47 |
-
COPY . .
|
48 |
-
|
49 |
-
EXPOSE 7860
|
50 |
-
|
51 |
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 /GPT2 && chmod -R 777 /GPT2
|
13 |
+
RUN mkdir -p /nltk_data && chmod -R 777 /nltk_data
|
14 |
+
RUN mkdir -p /TranslationModel \
|
15 |
+
/CodeGenModel \
|
16 |
+
/ImageGenModel \
|
17 |
+
/MusicGenModel \
|
18 |
+
/SentimentModel \
|
19 |
+
/SummarizationModel \
|
20 |
+
/STTModel \
|
21 |
+
/TTSModel \
|
22 |
+
/ImageTo3DModel \
|
23 |
+
/TextToVideoModel \
|
24 |
+
/GFPGAN \
|
25 |
+
/RestoreFormer \
|
26 |
+
/CodeFormer \
|
27 |
+
/RealESRGAN \
|
28 |
+
/checkpoints && \
|
29 |
+
chmod -R 777 /TranslationModel \
|
30 |
+
/CodeGenModel \
|
31 |
+
/ImageGenModel \
|
32 |
+
/MusicGenModel \
|
33 |
+
/SentimentModel \
|
34 |
+
/SummarizationModel \
|
35 |
+
/STTModel \
|
36 |
+
/TTSModel \
|
37 |
+
/ImageTo3DModel \
|
38 |
+
/TextToVideoModel \
|
39 |
+
/GFPGAN \
|
40 |
+
/RestoreFormer \
|
41 |
+
/CodeFormer \
|
42 |
+
/RealESRGAN \
|
43 |
+
/checkpoints
|
44 |
+
|
45 |
+
RUN pip install --no-cache-dir accelerate faker 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
|
46 |
+
|
47 |
+
COPY . .
|
48 |
+
|
49 |
+
EXPOSE 7860
|
50 |
+
|
51 |
CMD ["python", "main.py"]
|