fix: running tenants migration on docker migration container

This commit is contained in:
Ahmed Bouhuolia
2023-09-25 15:31:09 +02:00
parent 597973d5d1
commit efebf424d1
3 changed files with 16 additions and 6 deletions

View File

@@ -34,5 +34,7 @@ WORKDIR /app/packages/server
RUN git clone https://github.com/vishnubob/wait-for-it.git
# Once we listen the mysql port run the migration task.
CMD ["./wait-for-it/wait-for-it.sh", "mysql:3306", "--", "node", "./build/commands.js", "system:migrate:latest"]
ADD docker/migration/start.sh /
RUN chmod +x /start.sh
CMD ["/start.sh"]