diff --git a/Dockerfile b/Dockerfile index e4c34c1..7b077da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,4 @@ RUN mkdir -p staticfiles EXPOSE 8000 -CMD gunicorn core.wsgi:application --bind 0.0.0.0:$PORT +CMD ["sh", "./deploy.sh"] diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..414d26e --- /dev/null +++ b/deploy.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -e +python manage.py collectstatic --noinput +exec gunicorn core.wsgi:application --bind 0.0.0.0:$PORT \ No newline at end of file