Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

20 rindas
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"]