1234567891011121314151617181920212223 |
- FROM debian:latest
- COPY ./requirements.txt /tmp/
- COPY ./conf/uwsgi.ini /work/
- COPY ./scripts/bootstrap.sh /opt/
- COPY ./conf/uwsgi.ini /work/nginx_agent/conf/uwsgi.ini
- COPY ./conf/supervisord.conf /etc/
- COPY ./conf/supervisor_nginx.conf /etc/supervisord.d/nginx_agent.conf
- RUN apt-get -y update \
- && apt-get -y upgrade \
- && apt-get install -y python3 \
- python3-pip \
- gcc g++ \
- supervisor \
- && pip install --upgrade pip \
- && pip install -r /tmp/requirements.txt \
- && rm -rf /tmp/requirements.txt \
- && chmod +x /opt/bootstrap.sh
- ENTRYPOINT ["/opt/bootstrap.sh"]
- EXPOSE 5000
|