You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 line
417 B

  1. FROM python:3.5
  2. RUN mkdir /backend
  3. WORKDIR /backend
  4. RUN apt-get update && apt-get install -y \
  5. supervisor \
  6. netcat \
  7. && rm -rf /var/lib/apt/lists/*
  8. ADD requirements.txt /backend/
  9. RUN pip install -r requirements.txt
  10. ADD . /backend/
  11. COPY entrypoint.sh /
  12. RUN chmod 755 /entrypoint.sh
  13. ENTRYPOINT ["/entrypoint.sh"]
  14. COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
  15. CMD ["/usr/bin/supervisord"]