From abe27a41d7524726b5dede282f04e7003febaeed Mon Sep 17 00:00:00 2001 From: sean Date: Fri, 27 Jun 2025 14:07:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0speech=5Fweb=E9=A1=B9?= =?UTF-8?q?=E7=9B=AEdocker=E9=83=A8=E7=BD=B2=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demos/speech_web/Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 demos/speech_web/Dockerfile diff --git a/demos/speech_web/Dockerfile b/demos/speech_web/Dockerfile new file mode 100644 index 000000000..39c4c1416 --- /dev/null +++ b/demos/speech_web/Dockerfile @@ -0,0 +1,21 @@ +# Stage 1: 构建好的paddle-speech镜像 +FROM paddle-speech-base:1.0.0 + +# Set working directory +WORKDIR /app + +# Copy the rest of the backend application code +COPY speech_server/ . +# Show what files were copied +RUN ls -la +# Create source directories +RUN mkdir -p source/vpr source/wav source/db source/model + +RUN pip install --upgrade pip && \ + pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn + +# Expose port +EXPOSE 8010 + +# Command to run the application +CMD ["python", "main.py", "--port", "8010"] \ No newline at end of file