Initialization cleanup
* Guarantees that the flask db upgrade happens before cron starts * De-duplicates upgrade logic * Provides a convenient place to put more startup steps
This commit is contained in:
parent
94e40ff725
commit
6f2e2243b2
4 changed files with 10 additions and 4 deletions
|
@ -19,13 +19,14 @@ EXPOSE 80/tcp
|
|||
|
||||
ENV FLASK_APP=files/cli:app
|
||||
|
||||
CMD [ "bootstrap/init.sh" ]
|
||||
|
||||
|
||||
###################################################################
|
||||
# Release container
|
||||
FROM base AS release
|
||||
|
||||
COPY bootstrap/supervisord.conf.release /etc/supervisord.conf
|
||||
CMD [ "/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf" ]
|
||||
|
||||
|
||||
###################################################################
|
||||
|
@ -37,7 +38,6 @@ COPY thirdparty/sqlalchemy-easy-profile sqlalchemy-easy-profile
|
|||
RUN cd sqlalchemy-easy-profile && python3 setup.py install
|
||||
|
||||
COPY bootstrap/supervisord.conf.dev /etc/supervisord.conf
|
||||
CMD [ "/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf" ]
|
||||
|
||||
|
||||
###################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue