Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 3, 2025

Replaces ubuntu:22.04 base images with python:3.10-slim-bookworm (~550MB lighter) to reduce image size.

Changes

Dockerfile_simple:

  • Base image: ubuntu:22.04python:3.10-slim-bookworm
  • Removed miniforge/mamba installation (Python already included)
  • Updated to system Python paths (/usr/local/bin/python)
  • Changed to runtime packages (libgtk2.0-devlibgtk2.0-0)

Dockerfile:

  • Runtime stage: ubuntu:22.04python:3.10-slim-bookworm (build stages unchanged)
  • Multi-stage build copies OpenMS artifacts from build stage
  • Runtime libraries only (no dev packages)
  • Updated to system Python paths
# Before: All stages based on ubuntu:22.04
FROM ubuntu:22.04 AS setup-build-system
...
FROM compile-openms AS run-app

# After: Minimal runtime stage
FROM ubuntu:22.04 AS setup-build-system
...
FROM python:3.10-slim-bookworm AS run-app
COPY --from=compile-openms /openms /openms
COPY --from=compile-openms /thirdparty /thirdparty

Note: "manylinux" is a wheel format standard, not a Docker base image. Python slim images are the appropriate minimal alternative to Ubuntu for Python applications.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cli.github.com
    • Triggering command: /usr/bin/wget wget -qO- REDACTED (dns block)
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Use manylinux instead of ubuntu for dockerfiles</issue_title>
<issue_description>Would result in lighter images.</issue_description>

Comments on the Issue (you are @copilot in this section)

@t0mdavid-m Or any other more minimal distribution (alpine?) @t0mdavid-m Is there a Streamlit Docker Container?

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@coderabbitai
Copy link

coderabbitai bot commented Dec 3, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI and others added 4 commits December 3, 2025 13:43
Co-authored-by: t0mdavid-m <57191390+t0mdavid-m@users.noreply.github.com>
Co-authored-by: t0mdavid-m <57191390+t0mdavid-m@users.noreply.github.com>
…cumentation

Co-authored-by: t0mdavid-m <57191390+t0mdavid-m@users.noreply.github.com>
Co-authored-by: t0mdavid-m <57191390+t0mdavid-m@users.noreply.github.com>
Copilot AI changed the title [WIP] Use manylinux instead of ubuntu for dockerfiles Switch Dockerfiles to python:3.10-slim-bookworm for lighter images Dec 3, 2025
Copilot AI requested a review from t0mdavid-m December 3, 2025 13:53
@t0mdavid-m
Copy link
Member

@copilot how likely is this image to be no longer maintained in the future?

Copy link
Contributor Author

Copilot AI commented Dec 15, 2025

@copilot how likely is this image to be no longer maintained in the future?

Very unlikely. python:3.10-slim-bookworm is an official Docker image maintained by Docker Inc. Python 3.10 is supported until October 2026, and Debian Bookworm (the base OS) has support until 2028 with LTS until 2033. The image receives regular security updates.

If you need longer support, consider python:3.11-slim-bookworm (EOL Oct 2027) or python:3.12-slim-bookworm (EOL Oct 2028) as drop-in replacements.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use manylinux instead of ubuntu for dockerfiles

2 participants