diff --git a/AIMeiSheng/docker_demo/Dockerfile b/AIMeiSheng/docker_demo/Dockerfile index 0f49a7f..1f2806d 100644 --- a/AIMeiSheng/docker_demo/Dockerfile +++ b/AIMeiSheng/docker_demo/Dockerfile @@ -1,27 +1,28 @@ # 系统版本 CUDA Version 11.8.0 # NAME="CentOS Linux" VERSION="7 (Core)" # FROM starmaker.tencentcloudcr.com/starmaker/av/av:1.1 # 基础镜像, python3.9,cuda118,centos7,外加ffmpeg #FROM starmaker.tencentcloudcr.com/starmaker/av/av_base:1.0 FROM registry.ushow.media/av/av_base:1.0 #FROM av_base_test:1.0 RUN source /etc/profile && sed -i 's|mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/CentOS-Base.repo && sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Base.repo && yum clean all && yum install -y unzip && yum install -y libsndfile && yum install -y libsamplerate libsamplerate-devel RUN source /etc/profile && pip3 install librosa==0.9.1 && pip3 install gradio && pip3 install torch==2.1.2 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 RUN source /etc/profile && pip3 install urllib3==1.26.15 && pip3 install coscmd && coscmd config -a AKIDoQmshFWXGitnQmrfCTYNwEExPaU6RVHm -s F9n9E2ZonWy93f04qMaYFfogHadPt62h -b log-sg-1256122840 -r ap-singapore RUN source /etc/profile && pip3 install asteroid-filterbanks RUN source /etc/profile && pip3 install praat-parselmouth==0.4.3 RUN source /etc/profile && pip3 install pyworld RUN source /etc/profile && pip3 install faiss-cpu RUN source /etc/profile && pip3 install torchcrepe RUN source /etc/profile && pip3 install thop RUN source /etc/profile && pip3 install ffmpeg-python RUN source /etc/profile && pip3 install fairseq RUN source /etc/profile && pip3 install redis==4.5.0 - +RUN #source /etc/profile && pip3 install numpy=1.26.4 COPY ./ /data/code/ WORKDIR /data/code -CMD ["/bin/bash", "-c", "source /etc/profile; export PYTHONPATH=/data/code; cd /data/code/AIMeiSheng/docker_demo; python3 offline_server.py"] +#CMD ["/bin/bash", "-c", "source /etc/profile; export PYTHONPATH=/data/code; cd /data/code/AIMeiSheng/docker_demo; python3 offline_server.py"] +CMD ["/bin/bash", "-c", "source /etc/profile; export PYTHONPATH=/data/code; cd /data/code/AIMeiSheng/docker_demo; python3 tmp.py"] \ No newline at end of file diff --git a/AIMeiSheng/docker_demo/tmp.py b/AIMeiSheng/docker_demo/tmp.py new file mode 100644 index 0000000..f35f494 --- /dev/null +++ b/AIMeiSheng/docker_demo/tmp.py @@ -0,0 +1,13 @@ +""" +临时使用 +""" +import time + + +def ff(): + while True: + time.sleep(30) + + +if __name__ == '__main__': + ff()