first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
17
base/django/1.11.4/Dockerfile
Normal file
17
base/django/1.11.4/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM python:3.5
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /bin/wait-for-it.sh
|
||||
|
||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
RUN mkdir /app \
|
||||
&& pip install -U "django==1.11.4" "dj-database-url==0.5.0" "psycopg2==2.8.5" \
|
||||
&& chmod +x /docker-entrypoint.sh /bin/wait-for-it.sh
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["/docker-entrypoint.sh"]
|
5
base/django/1.11.4/docker-entrypoint.sh
Normal file
5
base/django/1.11.4/docker-entrypoint.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
/bin/wait-for-it.sh db:5432 -t 60 -- echo "postgres is up..."
|
||||
|
||||
python app.py migrate && python app.py runserver 0.0.0.0:8000
|
Reference in New Issue
Block a user