1234567891011121314151617181920212223242526 |
- FROM python:3.9
- RUN apt-get update && \
- apt-get install -y vim wget curl net-tools sngrep tcpflow tcpdump ffmpeg && \
- pip3 install swig cython pip setuptools --upgrade
- WORKDIR /code
- ADD . .
- RUN cd /code/pjproject && chmod +x configure aconfigure && ./configure CFLAGS="-fPIC" && make dep && make
- RUN cd /code/pjproject/pjsip-apps/src/swig/python && make && make install
- RUN cd /code/python-ESL-1.4.18 && python setup.py install
- RUN cd /code/alibabacloud-nls-python-sdk-dev && python -m pip install -r requirements.txt && python -m pip install .
- RUN pip install -r requirements.txt
- EXPOSE 8090
- EXPOSE 8091
- CMD ["sh", "-c", "gunicorn -w 1 -b 0.0.0.0:8090 src.core.server:app & gunicorn -w 1 -b 0.0.0.0:8091 --worker-class gevent src.core.socket_server:app & wait"]
|