Move model download from the Docker image build step to the run script #8
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
With the Docker files, as designed currently, you are staging a rather large file inside of a Docker image, which arguably violates the Docker Image best practice guideline of Don't install unnecessary packages. Ultimately, this dramatically inflates the size of the image to contain the model when it should be treated as a static asset that should be attached to a container.
By migrating the code to download the model to the run script, operators can now attach a volume to
/models
with storage that is defined outside of the context of the container. This could be a volume that lives on the same host, just as it did before if it was in the context of the Image, or could be provided by any other storage driver supported by Docker. Changes to the Docker Image will not require re-downloading and re-staging the model, significantly lowering both build time and bandwidth required to rebuild the image.In summary:
The text was updated successfully, but these errors were encountered: