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.
 
 
 
 
 
 

20 lines
496 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 --upgrade pip
  10. RUN pip install -r requirements.txt
  11. ADD . /backend/
  12. COPY entrypoint.sh /
  13. RUN chmod 755 /entrypoint.sh
  14. ENTRYPOINT ["/entrypoint.sh"]
  15. COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
  16. CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]