Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docker/Dockerfile.py313
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ RUN --mount=type=cache,target=/tmp/build --mount=type=bind,source=.,target=/opt/

FROM python:3.13-slim AS runner

RUN --mount=type=cache,target=/var/cache/apt \
apt-get update && apt install -y \
imagemagick \
libmagic1

COPY --from=builder /opt /opt
COPY --from=builder /*.whl /tmp
RUN pip3 install /tmp/*.whl && rm /tmp/*.whl
COPY --from=builder /savant_rs-*.whl /tmp
RUN SAVANT_RS_WHL=$(ls /tmp/savant_rs-*.whl | head -n 1) && \
echo "SAVANT_RS_WHL=$SAVANT_RS_WHL" && \
pip3 install $SAVANT_RS_WHL[clientsdk] && \
rm $SAVANT_RS_WHL
19 changes: 17 additions & 2 deletions docker/Dockerfile.py314
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ RUN --mount=type=cache,target=/tmp/build --mount=type=bind,source=.,target=/opt/

FROM python:3.14-slim AS runner

RUN --mount=type=cache,target=/var/cache/apt \
apt-get update && apt install -y \
imagemagick \
libmagic1 \
build-essential

COPY --from=builder /opt /opt
COPY --from=builder /*.whl /tmp
RUN pip3 install /tmp/*.whl && rm /tmp/*.whl
COPY --from=builder /savant_rs-*.whl /tmp
RUN SAVANT_RS_WHL=$(ls /tmp/savant_rs-*.whl | head -n 1) && \
echo "SAVANT_RS_WHL=$SAVANT_RS_WHL" && \
pip3 install $SAVANT_RS_WHL[clientsdk] && \
rm $SAVANT_RS_WHL

RUN --mount=type=cache,target=/var/cache/apt \
apt remove -y build-essential && \
apt autoremove -y && \
apt clean && \
rm -rf /var/lib/apt/lists/*
2 changes: 2 additions & 0 deletions savant_python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ clientsdk = [
"opencv-python~=4.12.0"
]



[tool.black]
skip-string-normalization = true

Expand Down
Loading