Skip to content
Open
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ENV APP_BUILD_HASH=${BUILD_HASH}
RUN npm run build

######## WebUI backend ########
FROM python:3.11-slim-bookworm AS base
FROM python:3.14.0rc3-slim-bookworm AS base

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This upgrade to a new Python version breaks existing CUDA functionality. The backend/start.sh script hardcodes the Python version in LD_LIBRARY_PATH to find CUDA libraries:

# backend/start.sh:30
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/python3.11/site-packages/torch/lib:/usr/local/lib/python3.11/site-packages/nvidia/cudnn/lib"

Changing the Python version in this Dockerfile without updating backend/start.sh will cause runtime errors when using CUDA. This change should be coordinated with a fix in backend/start.sh to avoid breaking the application.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Using a release candidate version (rc3) of Python introduces a stability risk. Release candidates are not intended for production use and may contain bugs. It is best practice to use a stable release. I suggest using a recent stable version like python:3.13-slim-bookworm instead.

FROM python:3.13-slim-bookworm AS base


# Use args
ARG USE_CUDA
Expand Down
Loading