You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using this repo in our build process and as a part of docker build, we noticed a huge different in the resulting image size between arm and amd64 architectures.
Here is a reproduction dockerfile:
FROM python:3.8-slim
# Install system dependenciesRUN apt-get update && apt-get install -y git
# Set work directoryWORKDIR /usr/src/app
# Copy only the requirements file, to cache the pip install stepRUN pip install --no-cache-dir --upgrade guardrails-ai
# Install specific toolsRUN guardrails hub install hub://tryolabs/restricttotopic
If you build this image from a Mac M1/M2 for example, the resulting image size will be around 1GB.
If you build it with the --platform=linux/amd64 flag, the size becomes 8GB.
This causes us a lot of trouble as it makes our CI pipeline very slow, and also requires us to dramatically increase our Kubernetes nodes' disk size, as we are using linux/amd64 in the cluster, as it is still the most common architecture. It takes several minutes to download the image to the cluster with every deployment.
Is this something you're able to address, please?
The text was updated successfully, but these errors were encountered:
This is also affecting our organization. Even though we are not using the local model, it still install torch and transformer in their entirety, making the image size very large.
Hi,
We're using this repo in our build process and as a part of
docker build
, we noticed a huge different in the resulting image size betweenarm
andamd64
architectures.Here is a reproduction dockerfile:
If you build this image from a Mac M1/M2 for example, the resulting image size will be around 1GB.
If you build it with the
--platform=linux/amd64
flag, the size becomes 8GB.This causes us a lot of trouble as it makes our CI pipeline very slow, and also requires us to dramatically increase our Kubernetes nodes' disk size, as we are using
linux/amd64
in the cluster, as it is still the most common architecture. It takes several minutes to download the image to the cluster with every deployment.Is this something you're able to address, please?
The text was updated successfully, but these errors were encountered: