| 12345678910111213141516171819202122232425262728 |
- FROM python:3.6
- EXPOSE 5000
- ADD ./sources.list /etc/apt/
- COPY ./web /home/SEEC-Judge/web
- COPY ./lorun /home/SEEC-Judge/lorun
- COPY ./setup.py /home/SEEC-Judge/setup.py
- RUN apt-get update \
- && apt-get install --no-install-recommends --no-install-suggests -y \
- python3-pip \
- gunicorn \
- gcc \
- default-jre \
- default-jdk \
- libapt-pkg5.0 \
- libcwidget3v5 \
- libncursesw5 \
- libtinfo5 \
- aptitude \
- g++
- RUN pip3 install -i https://pypi.douban.com/simple/ -U pip
- RUN pip3 config set global.index-url https://pypi.douban.com/simple/
- RUN pip3 install virtualenv \
- && pip3 install Flask
- RUN cd /home/SEEC-Judge \
- && python3 setup.py install
- WORKDIR /home/SEEC-Judge/web
- CMD ["gunicorn","-w", "1", "-b", "localhost:5000", "app:app"]
|