Dockerfile 498 B

12345678910111213141516171819
  1. FROM python:3.9
  2. #RUN apt install vim wget curl
  3. RUN pip3 install swig cython pip setuptools --upgrade
  4. RUN pip3 install flask flask_socketio mmh3 apscheduler
  5. WORKDIR /code
  6. ADD ./* .
  7. # pjsua2
  8. RUN ./configure CFLAGS="-fPIC"
  9. RUN cd ./pjsip-apps/src/swig/python && make && make install
  10. # pyESL
  11. RUN cd /code/python-ESL-1.4.18 && python setup.py install
  12. # nls
  13. RUN cd /code/alibabacloud-nls-python-sdk-1.0.2 && pip install -r requirements.txt && python setup.py install
  14. CMD ["tail", "-f", "/dev/null"]