mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-28 16:12:13 +00:00
换回 python 环境
This commit is contained in:
parent
a039ff333d
commit
477fc68ae2
@ -1,8 +1,4 @@
|
||||
FROM ubuntu
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install software-properties-common python-software-properties
|
||||
RUN apt-get -y install python
|
||||
RUN apt-get -y install python-pip
|
||||
FROM python:2.7
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV oj_env daocloud
|
||||
RUN mkdir /var/oj
|
||||
@ -11,4 +7,4 @@ WORKDIR /var/oj/
|
||||
RUN pip install -r requirements.txt
|
||||
EXPOSE 8080
|
||||
RUN mkdir LOG
|
||||
CMD python manage.py runserver 8080
|
||||
CMD bash -c "python manage.py runserver 8080"
|
||||
|
Loading…
Reference in New Issue
Block a user