TitanWong 1 rok temu
rodzic
commit
09523b0199
2 zmienionych plików z 8 dodań i 2 usunięć
  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