From 08a63f92c7c2ac908cf22215fa6d311ebf8762d5 Mon Sep 17 00:00:00 2001 From: nl <3210346136@qq.com> Date: Mon, 21 Mar 2022 22:13:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0Dockerfile=E4=B8=BA?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index acfa84f..9a288d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,16 +30,16 @@ RUN apt update && apt install -y python3 python3-pip RUN pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple -RUN pip3 install wave scipy matplotlib tensorflow-cpu==2.5.2 numpy==1.19.2 requests +RUN pip3 install wave scipy matplotlib tensorflow-cpu==2.5.2 numpy==1.19.2 requests flask waitress -RUN echo $'cd /asrt_server \n python3 asrserver.py' > /asrt_server/start.sh && chmod +x /asrt_server/start.sh +RUN echo $'cd /asrt_server \n python3 asrserver_http.py' > /asrt_server/start.sh && chmod +x /asrt_server/start.sh # refer: https://docs.docker.com/engine/reference/builder/#expose -EXPOSE 20000/tcp +EXPOSE 20001/tcp ENTRYPOINT ["/bin/bash", "/asrt_server/start.sh"] # https://docs.docker.com/engine/reference/commandline/build/#options -# docker build --progress plain --rm --build-arg TAG=1.1.0 --tag asrt/api_server:1.1.0 . +# docker build --progress plain --rm --build-arg TAG=1.1.1 --tag asrt/api_server:1.1.1 . # https://docs.docker.com/engine/reference/commandline/run/#options -# docker run --rm -it -p 20000:20000 --name asrt -d asrt/api_server:1.1.0 +# docker run --rm -it -p 20001:20001 --name asrt -d asrt/api_server:1.1.1