Reduced final image size

This commit is contained in:
Eugene Rakhmatulin
2026-01-30 13:16:55 -08:00
parent af6d5eae32
commit 7dd0642621

View File

@@ -264,10 +264,9 @@ RUN mkdir -p tiktoken_encodings && \
wget -O tiktoken_encodings/cl100k_base.tiktoken "https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken" wget -O tiktoken_encodings/cl100k_base.tiktoken "https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken"
# Copy artifacts from Builder Stage # Copy artifacts from Builder Stage
COPY --from=builder /workspace/wheels /workspace/wheels RUN --mount=type=bind,from=builder,source=/workspace/wheels,target=/mount/wheels \
RUN --mount=type=cache,id=uv-cache,target=/root/.cache/uv \ --mount=type=cache,id=uv-cache,target=/root/.cache/uv \
uv pip install /workspace/wheels/*.whl && \ uv pip install /mount/wheels/*.whl
rm -rf /workspace/wheels
ARG PRE_TRANSFORMERS=0 ARG PRE_TRANSFORMERS=0
RUN --mount=type=cache,id=uv-cache,target=/root/.cache/uv \ RUN --mount=type=cache,id=uv-cache,target=/root/.cache/uv \