Skip to content

Commit e69fc48

Browse files
author
Issam Kadar
committed
chore/security : use debian based image
1 parent 3fe0db3 commit e69fc48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/chatbot/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Builder stage - use standard Python image for building
1+
# Builder stage - use Debian Python image for building (onnxruntime needs glibc/manylinux)
22
FROM python:3.13-slim AS builder
33

44
# Set environment variables
@@ -7,7 +7,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
77
UV_CACHE_DIR=/tmp/uv-cache \
88
UV_LINK_MODE=copy
99

10-
# Install uv
10+
# Install build dependencies
1111
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && \
1212
curl -LsSf https://astral.sh/uv/install.sh | sh && \
1313
mv /root/.local/bin/uv /usr/local/bin/uv && \
@@ -22,8 +22,8 @@ COPY pyproject.toml uv.lock ./
2222
# Install dependencies
2323
RUN uv sync --frozen --no-dev
2424

25-
# Final stage - use hardened image
26-
FROM dhi.io/python:3.13-alpine3.23
25+
# Final stage - use hardened Debian-based image (not Alpine, for onnxruntime compatibility)
26+
FROM dhi.io/python:3.13
2727

2828
# Set environment variables
2929
ENV PYTHONDONTWRITEBYTECODE=1 \

0 commit comments

Comments
 (0)