Closed tscholak closed 1 month ago
- With this change the dependencies don't need to be reinstalled when the Fast-LLM source code changes. That can reduce rebuild times significantly since code changes land in different Docker image layers than dependencies.
Not sure I'm following here, was it not the case already?
Not sure I'm following here, was it not the case already?
People were telling me it was not. I never checked those claims, I just reworked the Dockerfile such that it was clear and sure that we wouldn't always rebuild everything on small code changes. Looks like it wasn't truly necessary. I removed those changes.
I'd like to refine the
Dockerfile
slightly to improve build efficiency and add runtime flexibility for the Fast-LLM container. The changes are small but impactful, focusing on two main improvements:setup.py
,setup.cfg
,pyproject.toml
) is done first.--exclude=
option enabled by Dockerfile syntax version1.7-labs
.fast_llm
user. This addition allows system adjustments (e.g., modifying system limits or adjusting host settings) directly from within the container.ulimit
) that do not persist across container restarts.Here's a breakdown of the build time: