mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
We need to run compress at docker startup time as it depends on
STATIC_URL :(
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 .
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user