lichess-org / lila-docker

Lichess local development using Docker Compose.
GNU Affero General Public License v3.0
44 stars 44 forks source link

Reduce image size with multi-stage build #72

Closed tors42 closed 7 months ago

tors42 commented 7 months ago

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 :grinning:

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

seems to work so far...