Dockerfile 527 B

123456789101112131415161718192021
  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. python3-pip \
  9. gunicorn \
  10. gcc \
  11. default-jre \
  12. default-jdk \
  13. aptitude \
  14. g++
  15. RUN pip3 install virtualenv \
  16. && pip3 install Flask
  17. RUN cd /home/SEEC-Judge \
  18. && python3 setup.py install
  19. CMD cd /home/SEEC-Judge/web \
  20. && gunicorn -w 1 -b localhost:5000 app:app