Changed start.sh to start.py
This commit is contained in:
@@ -12,11 +12,11 @@ RUN apk add --no-cache openssl \
|
||||
COPY mailu ./mailu
|
||||
COPY migrations ./migrations
|
||||
COPY manage.py .
|
||||
COPY start.sh /start.sh
|
||||
COPY start.py /start.py
|
||||
|
||||
RUN pybabel compile -d mailu/translations
|
||||
|
||||
EXPOSE 80/tcp
|
||||
VOLUME ["/data"]
|
||||
|
||||
CMD ["/start.sh"]
|
||||
CMD python /start.py
|
||||
|
||||
7
core/admin/start.py
Executable file
7
core/admin/start.py
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
|
||||
os.system("python manage.py advertise")
|
||||
os.system("python manage.py db upgrade")
|
||||
os.system("gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload mailu:app")
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
python manage.py advertise
|
||||
python manage.py db upgrade
|
||||
gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload mailu:app
|
||||
Reference in New Issue
Block a user