Dockerfile 908 B

12345678910111213141516171819202122232425262728293031323334353637
  1. FROM python:3.7-slim
  2. WORKDIR /code
  3. RUN apt-get update \
  4. && apt-get --yes --no-install-recommends install \
  5. python3 python3-dev \
  6. build-essential cmake \
  7. portaudio19-dev python3-pyaudio \
  8. && rm -rf /var/lib/apt/lists/*
  9. RUN pip3 install numpy
  10. COPY requirements.txt .
  11. RUN pip install -r requirements.txt
  12. COPY src/ .
  13. CMD [ "/bin/bash" ]
  14. #CMD [ "python3", "./server.py" ]
  15. #RUN apt-get update && apt-get -y install cron vim
  16. #WORKDIR /app
  17. #COPY crontab /etc/cron.d/crontab
  18. #COPY hello.py /app/hello.py
  19. #RUN chmod 0644 /etc/cron.d/crontab
  20. #RUN /usr/bin/crontab /etc/cron.d/crontab
  21. # run crond as main process of container
  22. #CMD ["cron", "-f"]
  23. # copy the dependencies file to the working directory
  24. # install dependencies
  25. # copy the content of the local src directory to the working directory
  26. # command to run on container start
  27. #CMD [ "python", "./server.py" ]
  28. CMD ["python3"]