Ensure that migrations are run when the container boots

This is a little derpy, but the simplest way to reliable get these migrations to
execute along with application deployments
This commit is contained in:
R. Tyler Croy 2018-10-22 10:34:19 -07:00
parent 9f451c1994
commit 0c8d0b7f3c
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 3 additions and 1 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules/

View File

@ -20,7 +20,8 @@ COPY migrations ${APP_DIR}/migrations
COPY config ${APP_DIR}/config
COPY public ${APP_DIR}/public
COPY views ${APP_DIR}/views
COPY .sequelizerc ${APP_DIR}/
EXPOSE 3030
CMD node ./build/
CMD node ./node_modules/.bin/sequelize db:migrate && node ./build/