Create database schema in docker container
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7fa31575f9
commit
95683625da
1 changed files with 2 additions and 0 deletions
|
@ -11,5 +11,7 @@ RUN pipenv install
|
||||||
ENV FLASK_APP=snip
|
ENV FLASK_APP=snip
|
||||||
ENV FLASK_ENV=production
|
ENV FLASK_ENV=production
|
||||||
|
|
||||||
|
RUN ["pipenv", "run", "python", "-c", "from snip import db; db.create_all()"]
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
CMD ["pipenv", "run", "flask", "run", "--host=0.0.0.0"]
|
CMD ["pipenv", "run", "flask", "run", "--host=0.0.0.0"]
|
||||||
|
|
Loading…
Reference in a new issue