Create database schema in docker container
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Armin Friedl 2020-11-06 02:28:29 +01:00
parent 7fa31575f9
commit 95683625da

View file

@ -11,5 +11,7 @@ RUN pipenv install
ENV FLASK_APP=snip
ENV FLASK_ENV=production
RUN ["pipenv", "run", "python", "-c", "from snip import db; db.create_all()"]
EXPOSE 5000
CMD ["pipenv", "run", "flask", "run", "--host=0.0.0.0"]