Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile-online
Original file line number Diff line number Diff line change
@@ -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
ENTRYPOINT python manage.py runserver 0.0.0.0:8000
8 changes: 8 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -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
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions src/project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

ALLOWED_HOSTS = ['*']

DISABLE_CHECKS = True

# Application definition

Expand Down
1 change: 0 additions & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Django==1.11.29
coverage==4.5.4
nose==1.3.7