Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

fix(docker): bump base image to python:3.13-slim to clear base-image CVEs - #5

Open
cdcore09 wants to merge 1 commit into
RedBeardLab:llteacher01from
uw-ssec:fix/dockerfile-python-3.13-slim
Open

fix(docker): bump base image to python:3.13-slim to clear base-image CVEs#5
cdcore09 wants to merge 1 commit into
RedBeardLab:llteacher01from
uw-ssec:fix/dockerfile-python-3.13-slim

Conversation

@cdcore09

@cdcore09 cdcore09 commented Aug 5, 2026

Copy link
Copy Markdown

What

Bumps the Docker base image from python:3.12-slim to python:3.13-slim to clear the 4 base-image CVEs Snyk flagged.

Why not the Snyk-proposed python:3.15-rc-alpine

Snyk auto-opened uw-ssec/llteacher#7 proposing python:3.15-rc-alpine. Two problems with that target:

  • 3.15-rc is an unreleased release candidate — production images shouldn't pin to a pre-release; Snyk's "0 known vulnerabilities" for an RC mostly means it hasn't been scanned yet.
  • -slim-alpine switches Debian/glibc to musl, which breaks manylinux wheels (psycopg2 and other compiled deps) and risks the Django build.

python:3.13-slim is the conservative fix: released stable, stays on glibc, satisfies pyproject's requires-python = ">=3.12", is supported by Django 5.2, and clears the same base-image CVEs.

Context

uw-ssec/llteacher (a fork) has migrated off this Django stack to a TypeScript/Cloudflare Workers stack, so this fix is contributed upstream where the Django Docker image is still in use. Supersedes the Snyk PR uw-ssec#7.

…CVEs

Snyk flagged 4 vulnerabilities in the python:3.12-slim base image
(#7, which proposed python:3.15-rc-alpine). This takes
the conservative path instead:

- 3.13-slim is a released stable Python (3.15 is an unreleased release
  candidate; pinning production to an RC is not appropriate).
- Stays on the Debian/glibc `-slim` line rather than switching to
  Alpine/musl, which would break manylinux wheels and risk the Django
  build (psycopg2 etc.).
- 3.13 satisfies pyproject's `requires-python = ">=3.12"` and is
  supported by Django 5.2.

Supersedes the Snyk PR #7.
@cdcore09

cdcore09 commented Aug 5, 2026

Copy link
Copy Markdown
Author

@siscia — flagging you for review (couldn't formally request it via the API since I'm contributing from a fork without triage rights on this repo). This is a conservative base-image CVE fix; it supersedes the Snyk bot's uw-ssec/llteacher#7, which proposed an unreleased python:3.15-rc-alpine (RC + a glibc→musl switch). Happy to adjust the target tag if you'd prefer a different supported version.

@siscia

siscia commented Aug 6, 2026

Copy link
Copy Markdown
Member

@cdcore09 , sorry - was off github for a while.

llteacher works on top of: https://github.com/RedBeardLab/2llteacher

This repo should be archived.

@cdcore09

cdcore09 commented Aug 6, 2026 via email

Copy link
Copy Markdown
Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants