您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

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