Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce image size with multi-stage build #72

Merged
merged 3 commits into from
Mar 30, 2024
Merged

Conversation

tors42
Copy link
Contributor

@tors42 tors42 commented Mar 30, 2024

Here's an example "refactoring" of the ci.Dockerfile,
which reduces the size from 3 GB to 2 GB.

At least the integration tests in chariot are still passing,
but that should probably not be "the one source of truth" if this refactoring is sound or not 😀

I think the main things which is gotten rid of with this updated image are "leftovers" from sbt and git checkouts.

I'm not confident in that I know which files from the lila git checkout that are needed in actual runtime - but the current copying of

  • /lila/target
  • /lila/public
  • /lila/conf

seems to work so far...

@fitztrev fitztrev merged commit c477c39 into lichess-org:ci Mar 30, 2024
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.

2 participants