From 49da5fdffa3658579872fbc1df335b4287e804ed Mon Sep 17 00:00:00 2001 From: Marc Gibbons Date: Sat, 20 Aug 2016 09:37:18 -0400 Subject: [PATCH] Use entrypoint for Dockerfile #524. --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a43e228..d83e3f80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,5 +6,4 @@ ADD . /code WORKDIR /code/example_app VOLUME /code -RUN python manage.py migrate --noinput && python manage.py loaddata users && python manage.py migrate --noinput -CMD python manage.py runserver 0.0.0.0:8000 +ENTRYPOINT bash -c "python manage.py migrate --noinput && python manage.py loaddata users && python manage.py runserver 0.0.0.0:8000"