mirror of
https://github.com/Mailu/Mailu.git
synced 2025-02-21 19:19:39 +02:00
Perform automatic database migration
This commit is contained in:
parent
81c33fce8a
commit
cc013560d9
@ -4,9 +4,10 @@ RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
|
||||
COPY freeposte ./freeposte
|
||||
COPY initdb.py .
|
||||
COPY manage.py .
|
||||
COPY requirements.txt .
|
||||
COPY start.sh /start.sh
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
CMD gunicorn -w 4 -b 0.0.0.0:80 --access-logfile - --error-logfile - freeposte:app
|
||||
CMD ["/start.sh"]
|
||||
|
4
admin/start.sh
Executable file
4
admin/start.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
python manage.py db upgrade
|
||||
gunicorn -w 4 -b 0.0.0.0:80 --access-logfile - --error-logfile - freeposte:app
|
Loading…
x
Reference in New Issue
Block a user