Skip to content

Added conda package support#2647

Open
hafeezhmha wants to merge 1 commit intoreplicate:mainfrom
hafeezhmha:add-conda-package-support
Open

Added conda package support#2647
hafeezhmha wants to merge 1 commit intoreplicate:mainfrom
hafeezhmha:add-conda-package-support

Conversation

@hafeezhmha
Copy link
Contributor

Adds support for installing conda packages during image builds using micromamba. This enables installation of packages only available through conda-forge and other conda channels.

Configuration:

  • conda_packages: List of packages to install (supports version pinning)
  • conda_channels: List of channels to use (defaults to conda-forge, defaults)

Implementation uses micromamba instead of full conda for smaller image size (~10MB vs ~500MB). Micromamba version pinned to 2.5.0-1 for reproducible builds. Architecture detection ensures compatibility with both amd64 (linux-64) and arm64 (linux-aarch64) platforms.

Conda packages are installed to /opt/conda and symlinked to system Python's site-packages, avoiding the need to reinstall cog while making conda packages accessible to the existing Python environment.

Fixes #2471

Adds support for installing conda packages during image builds using
micromamba. This enables installation of packages only available through
conda-forge and other conda channels.

Configuration:
- conda_packages: List of packages to install (supports version pinning)
- conda_channels: List of channels to use (defaults to conda-forge, defaults)

Implementation uses micromamba instead of full conda for smaller image
size (~10MB vs ~500MB). Micromamba version pinned to 2.5.0-1 for
reproducible builds. Architecture detection ensures compatibility with
both amd64 (linux-64) and arm64 (linux-aarch64) platforms.

Conda packages are installed to /opt/conda and symlinked to system
Python's site-packages, avoiding the need to reinstall cog while making
conda packages accessible to the existing Python environment.

Fixes replicate#2471
@hafeezhmha hafeezhmha requested a review from a team as a code owner January 22, 2026 13:19
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.

Is there a way to have conda packages.

1 participant