build: run pending Diesel migrations on the Docker development container start

This commit is contained in:
Matouš Volf
2024-08-18 22:51:12 +02:00
parent c8f62bbe98
commit b82b472206
3 changed files with 4 additions and 2 deletions

View File

@ -20,4 +20,4 @@ HEALTHCHECK CMD curl --fail http://localhost:8000 || exit 1
USER 1000:1000
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
CMD sh docker/dev/app/entrypoint.sh

View File

@ -0,0 +1,3 @@
diesel migration run
supervisord -c /etc/supervisor/conf.d/supervisord.conf