Browse Source

Actualización entrypoint

Rolando Valenzuela 4 years ago
parent
commit
2790fadd29
2 changed files with 4 additions and 0 deletions
  1. 2 0
      Dockerfile
  2. 2 0
      run.sh

+ 2 - 0
Dockerfile

@@ -4,4 +4,6 @@ RUN apt-get install -y gcc portaudio19-dev python-setuptools ffmpeg tk
 RUN python -m pip install --upgrade pip
 RUN pip install cryptography numpy pydub matplotlib scipy tornado requests pyaudio firebase_admin psutil mutagen
 ADD . /code/
+WORKDIR /code/ondemand/
+ENTRYPOINT [ "python", "service.py"]
 #RUN python setup.py install

+ 2 - 0
run.sh

@@ -1,4 +1,6 @@
 #!/bin/sh
+###construir imagen ondemand
+docker build -t ondemand .
 ###prueba
 #docker run -it -v /var/fourier:/var/fourier ondemand bash
 ###produccion