Reduced final image size
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user