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