Change to entrypoint

This commit is contained in:
Stephan Porada 2019-09-06 12:34:32 +02:00
parent 0c1dc03af5
commit 837fb8bd46
3 changed files with 8 additions and 9 deletions

10
.gitignore vendored
View File

@ -6,12 +6,12 @@ __pycache
.idea
**/staticfiles/*
**/input_data/*
staticfiles
input_data
/input_volume/*
postgres_data/*
static_volume/*
input_volume
postgres_data
static_volume
!**/.gitkeep

View File

@ -22,5 +22,5 @@ RUN git clone https://github.com/vishnubob/wait-for-it.git /wait-for-it
RUN chmod a+x /wait-for-it/wait-for-it.sh
# add entry point
ADD ./django-entrypoint.sh /django-entrypoint.sh
RUN chmod a+x /django-entrypoint.sh
COPY ./django-entrypoint.sh /django-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]

View File

@ -1,6 +1,5 @@
#!/bin/bash -x
#!/bin/bash
python manage.py collectstatic --noinput
python manage.py makemigrations --noinput
python manage.py migrate --noinput
exec "$@"