Skip to content

Conversation

@MarioCadenas
Copy link
Contributor

No description provided.

Copy link
Contributor

@pffigueiredo pffigueiredo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it 🚀

EXPOSE ${SERVER_PORT} 80

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
CMD ["sh", "-c", "bun db:push && /usr/bin/supervisord -c /etc/supervisord.conf"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should they be separated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can only run one command when using CMD right? and we need to run both of them, any suggestions?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, i just realized it can't be RUN as db is not initialized during build. Should be fine than!

@MarioCadenas MarioCadenas merged commit ee3e8d0 into main May 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants