-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (48 loc) · 2.2 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# syntax=docker/dockerfile:1
FROM python:3.10-bullseye
ARG REPO="web_ui-fumiama"
ENV BUILDREPO=${REPO}
# Gradio-Standards. DO NOT MODIFY!
ENV GRADIO_SERVER_NAME="0.0.0.0"
ENV GRADIO_SERVER_PORT=7865
#RVC itself
EXPOSE 7865
#Tensorboard
EXPOSE 7875
#Filebrowser
EXPOSE 7895
RUN apt-get update
RUN apt-get install -y ffmpeg supervisor
RUN apt-get install -y php zip unzip
# Install Filegator
RUN cd / && wget https://github.com/filegator/static/raw/master/builds/filegator_latest.zip && unzip filegator_latest.zip && rm /filegator_latest.zip && mv filegator /filemanager
COPY /assets/filegatorusers.json /filemanager/private/users.json
COPY /assets/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN case "$BUILDREPO" in \
web_ui-rvc_boss) \
git clone https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI /app && \
cd /app && mkdir dataset audios audio-outputs && pip install -r requirements.txt && python tools/download_models.py && \
sed -i 's|command=python3 !!!StartCommand!!!|command=python3 /app/infer-web.py|' /etc/supervisor/conf.d/supervisord.conf \
;; \
web_ui-fumiama) \
git clone https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI /app && \
cd /app && mkdir dataset audios audio-outputs && pip install -r requirements.txt && python tools/download_models.py && \
sed -i 's|command=python3 !!!StartCommand!!!|command=python3 /app/infer-web.py|' /etc/supervisor/conf.d/supervisord.conf \
;; \
applio) \
git clone https://github.com/IAHispano/Applio /app && \
cd /app && pip install -r requirements.txt && python core.py prerequisites && \
sed -i 's|command=python3 !!!StartCommand!!!|command=python3 /app/app.py --port 7865|' /etc/supervisor/conf.d/supervisord.conf \
;; \
*) \
echo "Unknown build-repo: $BUILDREPO"; \
exit 1; \
;; \
esac
RUN cd /filemanager && rm -rf repository && ln -s /app repository
WORKDIR /app
RUN pip install ffmpy --upgrade
RUN pip install tensorflow
ENV PUBLIC_KEY=""
RUN mkdir /root/.ssh
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]