Skip to content

Commit

Permalink
feat: add sleep time for migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Sep 18, 2023
1 parent 114b8d9 commit 69eebaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,5 @@ RUN cd libs/migrations && \

FROM go_prod_base as migrations
COPY --from=migrations_builder /app/libs/migrations/out /bin/migrations
CMD ["/bin/migrations"]
# add 10 seconds sleep
CMD ["sh", "-c", "/bin/migrations && sleep 10"]

0 comments on commit 69eebaf

Please sign in to comment.