Dockerfile 722 B

1234567891011121314151617181920212223
  1. FROM debian:latest
  2. COPY ./requirements.txt /tmp/
  3. COPY ./conf/uwsgi.ini /work/
  4. COPY ./scripts/bootstrap.sh /opt/
  5. COPY ./conf/uwsgi.ini /work/nginx_agent/conf/uwsgi.ini
  6. COPY ./conf/supervisord.conf /etc/
  7. COPY ./conf/supervisor_nginx.conf /etc/supervisord.d/nginx_agent.conf
  8. RUN apt-get -y update \
  9. && apt-get -y upgrade \
  10. && apt-get install -y python3 \
  11. python3-pip \
  12. gcc g++ \
  13. supervisor \
  14. && pip install --upgrade pip \
  15. && pip install -r /tmp/requirements.txt \
  16. && rm -rf /tmp/requirements.txt \
  17. && chmod +x /opt/bootstrap.sh
  18. ENTRYPOINT ["/opt/bootstrap.sh"]
  19. EXPOSE 5000