Skip to content

Commit

Permalink
ci: update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nl8590687 committed May 20, 2022
1 parent 6936457 commit 7619e3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ 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.3 numpy==1.19.2 requests flask waitress
RUN pip3 install wave scipy matplotlib tensorflow-cpu==2.5.3 numpy==1.19.2 requests flask waitress grpcio grpcio-tools protobuf

RUN echo $'cd /asrt_server \n python3 asrserver_http.py' > /asrt_server/start.sh && chmod +x /asrt_server/start.sh

Expand All @@ -40,6 +40,6 @@ 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.2.0 --tag asrt/api_server:1.2.0 .
# docker build --progress plain --rm --build-arg TAG=1.3.0 --tag asrt/api_server:1.3.0 .
# https://docs.docker.com/engine/reference/commandline/run/#options
# docker run --rm -it -p 20001:20001 --name asrt -d asrt/api_server:1.2.0
# docker run --rm -it -p 20001:20001 --name asrt -d asrt/api_server:1.3.0

0 comments on commit 7619e3f

Please sign in to comment.