Dockerfile 527 B

1234567891011121314151617181920
  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-Judhe/setup.py
  6. RUN apt-get update \
  7. && apt-get install --no-install-recommends --no-install-suggests -y \
  8. default-libmysqlclient-dev \
  9. gunicorn \
  10. gcc \
  11. python-devel \
  12. java \
  13. aptitude \
  14. g++ \
  15. && pip3 install virtualenv
  16. && pip3 install Flask
  17. RUN python3 /home/SEEC-Judge/setup.py install
  18. RUN cd /home/SEEC-Judge/web \
  19. && gunicorn -w 1 -b localhost:5000 app:app