Dockerfile 669 B

1234567891011121314151617181920212223
  1. FROM python:3.6
  2. EXPOSE 5000
  3. COPY ./web /home/SEEC-Judge/web
  4. COPY ./lorun /home/SEEC-Judge/lorun
  5. COPY ./setup.py /home/SEEC-Judge/setup.py
  6. RUN apt-get update \
  7. && apt-get install --no-install-recommends --no-install-suggests -y \
  8. python3-pip \
  9. gunicorn \
  10. gcc \
  11. default-jre \
  12. default-jdk \
  13. aptitude \
  14. g++
  15. RUN pip3 install -i https://pypi.douban.com/simple/ -U pip
  16. RUN pip3 config set global.index-url https://pypi.douban.com/simple/
  17. RUN pip3 install virtualenv \
  18. && pip3 install Flask
  19. RUN cd /home/SEEC-Judge \
  20. && python3 setup.py install
  21. WORKDIR /home/SEEC-Judge/web
  22. CMD ["gunicorn","-w", "1", "-b", "localhost:5000", "app:app"]