Dockerfile 672 B

123456789101112131415161718192021222324
  1. FROM ubuntu:16.04
  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 add-apt-repository ppa:deadsnakes/ppa \
  7. && apt-get update \
  8. && apt-get install --no-install-recommends --no-install-suggests -y \
  9. python3.6 \
  10. python3-pip \
  11. gunicorn \
  12. gcc \
  13. default-jre \
  14. default-jdk \
  15. aptitude \
  16. g++
  17. RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
  18. RUN pip3 install virtualenv \
  19. && pip3 install Flask
  20. RUN cd /home/SEEC-Judge \
  21. && python3 setup.py install
  22. CMD cd /home/SEEC-Judge/web \
  23. && gunicorn -w 1 -b localhost:5000 app:app