Change to entrypoint
This commit is contained in:
parent
0c1dc03af5
commit
837fb8bd46
10
.gitignore
vendored
10
.gitignore
vendored
@ -6,12 +6,12 @@ __pycache
|
|||||||
.idea
|
.idea
|
||||||
|
|
||||||
|
|
||||||
**/staticfiles/*
|
staticfiles
|
||||||
**/input_data/*
|
input_data
|
||||||
|
|
||||||
/input_volume/*
|
input_volume
|
||||||
postgres_data/*
|
postgres_data
|
||||||
static_volume/*
|
static_volume
|
||||||
|
|
||||||
!**/.gitkeep
|
!**/.gitkeep
|
||||||
|
|
||||||
|
@ -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
|
RUN chmod a+x /wait-for-it/wait-for-it.sh
|
||||||
|
|
||||||
# add entry point
|
# add entry point
|
||||||
ADD ./django-entrypoint.sh /django-entrypoint.sh
|
COPY ./django-entrypoint.sh /django-entrypoint.sh
|
||||||
RUN chmod a+x /django-entrypoint.sh
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash -x
|
#!/bin/bash
|
||||||
|
|
||||||
python manage.py collectstatic --noinput
|
python manage.py collectstatic --noinput
|
||||||
python manage.py makemigrations --noinput
|
python manage.py makemigrations --noinput
|
||||||
python manage.py migrate --noinput
|
python manage.py migrate --noinput
|
||||||
exec "$@"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user