2023-01-10 23:17:29 +03:00
|
|
|
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 as base
|
2022-08-22 10:08:49 +03:00
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y python3-pip git
|
2022-11-03 17:32:06 +03:00
|
|
|
|
2023-01-14 13:27:18 +03:00
|
|
|
RUN pip install torch==1.13.1
|
|
|
|
RUN pip install numpy==1.24.1
|
|
|
|
RUN pip install python-socketio==5.7.2
|
|
|
|
|
|
|
|
RUN pip install fastapi==0.89.1
|
2022-10-29 18:58:21 +03:00
|
|
|
RUN pip install python-multipart==0.0.5
|
2023-01-14 13:27:18 +03:00
|
|
|
RUN pip install uvicorn==0.20.0
|
2022-10-29 18:58:21 +03:00
|
|
|
RUN pip install websockets==10.4
|
2023-01-05 19:37:29 +03:00
|
|
|
RUN pip install pyOpenSSL==23.0.0
|
2023-01-10 23:17:29 +03:00
|
|
|
RUN pip install onnxruntime-gpu==1.13.1
|
2022-09-23 11:40:51 +03:00
|
|
|
|
2023-01-14 13:27:18 +03:00
|
|
|
RUN git clone https://github.com/isletennos/MMVC_Client.git
|
|
|
|
RUN cd MMVC_Client && git checkout 04f3fec4fd82dea6657026ec4e1cd80fb29a415c && cd -
|
|
|
|
|
|
|
|
|
2023-01-05 19:37:29 +03:00
|
|
|
WORKDIR /
|
|
|
|
ADD dummy /
|
|
|
|
|
2023-02-10 18:59:44 +03:00
|
|
|
RUN git clone --depth 1 https://github.com/w-okada/voice-changer.git
|
2023-01-10 23:17:29 +03:00
|
|
|
|
|
|
|
|
2023-01-11 12:07:59 +03:00
|
|
|
#########
|
|
|
|
# Prod #
|
|
|
|
#########
|
2023-01-10 23:17:29 +03:00
|
|
|
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
|
|
|
|
|
2022-08-22 10:08:49 +03:00
|
|
|
RUN apt-get update \
|
2023-01-10 23:17:29 +03:00
|
|
|
&& apt-get install -y python3-pip espeak gosu libsndfile1-dev emacs \
|
2022-08-22 10:08:49 +03:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2022-08-23 00:37:18 +03:00
|
|
|
### Copy from base
|
2023-01-10 23:17:29 +03:00
|
|
|
COPY --from=base --chmod=777 /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
|
2023-01-05 19:37:29 +03:00
|
|
|
COPY --from=base --chmod=777 /voice-changer /voice-changer
|
2023-01-14 13:27:18 +03:00
|
|
|
COPY --from=base --chmod=777 /MMVC_Client /voice-changer/server/MMVC_Client
|
|
|
|
RUN chmod 0777 /voice-changer/server/MMVC_Client
|
2023-01-10 23:17:29 +03:00
|
|
|
RUN chmod 0777 /voice-changer/server
|
2023-01-05 19:37:29 +03:00
|
|
|
|
2023-01-10 23:17:29 +03:00
|
|
|
ADD /setup.sh /voice-changer/server
|
|
|
|
ADD /exec.sh /voice-changer/server
|
2022-10-02 18:16:46 +03:00
|
|
|
|
|
|
|
|
2023-01-10 23:17:29 +03:00
|
|
|
WORKDIR /voice-changer/server
|
|
|
|
ENTRYPOINT ["/bin/bash", "setup.sh"]
|
|
|
|
CMD [ "-h"]
|