Browse Source

重复10次7

TitanWong 1 year ago
parent
commit
09523b0199
2 changed files with 8 additions and 2 deletions
  1. 3 2
      Dockerfile
  2. 5 0
      playMusic.sh

+ 3 - 2
Dockerfile

@@ -4,8 +4,9 @@ FROM nas.fast-fun.cn:5000/station-control/tts:0.2
 ENV LANG C.UTF-8
 #RUN mkdir -p /home/download/excel
 COPY ./lib /home/lib
-RUN echo -e "#bin/bash\nwhile true\ndo\n\tplay -v \$2 \$1\ndone" >/home/playMusic.sh
-RUN chmod 755 /home/playMusic.sh
+COPY ./playMusic.sh /home/playMusic.sh
+
+#RUN chmod 755 /home/playMusic.sh
 
 COPY ./target/zhili-station-control-tts-1.0-SNAPSHOT.jar /home/App.jar
 

+ 5 - 0
playMusic.sh

@@ -0,0 +1,5 @@
+#!bin/bash
+while true
+do
+  play -v $2 $1
+done