We need to run compress at docker startup time as it depends on

STATIC_URL :(
This commit is contained in:
Raphael Michel
2015-05-20 18:28:54 +02:00
parent d658303da3
commit fbe9f5874d
3 changed files with 3 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ RUN pip3 install -r requirements/mysql.txt
RUN pip3 install -r requirements/postgres.txt
RUN pip3 install gunicorn
RUN make production
RUN make
RUN mkdir /etc/pretix
RUN mkdir /data

View File

@@ -1,3 +1,3 @@
main:
#tar ch --exclude=_static --exclude=htmlcov --exclude=db.sqlite3 . |
docker build -t raphaelm/pretix-standalone .
docker build -t pretix/standalone .

View File

@@ -3,6 +3,7 @@ cd /pretix/src
export DJANGO_SETTINGS_MODULE=pretix.settings
export MEDIA_ROOT=/data/
python3 manage.py migrate
python3 manage.py compress
gunicorn \
-b '0.0.0.0:80' \
-w 3 --max-requests 1000 --max-requests-jitter 50 \