diff --git a/Dockerfile-online b/Dockerfile-online index 4d2df1d..d9419f0 100644 --- a/Dockerfile-online +++ b/Dockerfile-online @@ -1,8 +1,8 @@ -FROM python:2.7.16-alpine3.9 +FROM python:2 RUN mkdir /code COPY . /code WORKDIR /code/src RUN pip install /code/pkgs/base/* -ENTRYPOINT python manage.py runserver 0.0.0.0:8080 \ No newline at end of file +ENTRYPOINT python manage.py runserver 0.0.0.0:8000 \ No newline at end of file diff --git a/makefile b/makefile new file mode 100644 index 0000000..99aeb49 --- /dev/null +++ b/makefile @@ -0,0 +1,8 @@ +run: + docker build -f Dockerfile-online -t shaowenchen/demo . + docker run -d -p 8011:8000 --name python-demo shaowenchen/demo +test: + curl localhost:8011 +stop: + docker stop python-demo + docker rm python-demo diff --git a/pkgs/base/Django-1.11.23-py2.py3-none-any.whl b/pkgs/base/Django-1.11.29-py2.py3-none-any.whl similarity index 91% rename from pkgs/base/Django-1.11.23-py2.py3-none-any.whl rename to pkgs/base/Django-1.11.29-py2.py3-none-any.whl index 8485dc3..805f1fd 100644 Binary files a/pkgs/base/Django-1.11.23-py2.py3-none-any.whl and b/pkgs/base/Django-1.11.29-py2.py3-none-any.whl differ diff --git a/pkgs/base/pytz-2019.2-py2.py3-none-any.whl b/pkgs/base/pytz-2020.4-py2.py3-none-any.whl similarity index 57% rename from pkgs/base/pytz-2019.2-py2.py3-none-any.whl rename to pkgs/base/pytz-2020.4-py2.py3-none-any.whl index c662f39..9354794 100644 Binary files a/pkgs/base/pytz-2019.2-py2.py3-none-any.whl and b/pkgs/base/pytz-2020.4-py2.py3-none-any.whl differ diff --git a/src/project/settings.py b/src/project/settings.py index 3bad2e6..a96daea 100644 --- a/src/project/settings.py +++ b/src/project/settings.py @@ -27,6 +27,7 @@ ALLOWED_HOSTS = ['*'] +DISABLE_CHECKS = True # Application definition diff --git a/src/requirements.txt b/src/requirements.txt index cc38b2c..88a32ac 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,3 +1,2 @@ Django==1.11.29 coverage==4.5.4 -nose==1.3.7