wave
wave copied to clipboard
Use Pixi to resolve Conda environment
Wave uses Micromanba-docker to resolve and install Conda packages in the built containers.
Pixi should allows the creation of smaller containers in less time.
The goal of this issue is to implement the support for Pixi as a replacement for Micromamba.
Given Conda environment file, the Container image can be built using the following Dockerfile
FROM ghcr.io/prefix-dev/pixi:0.18.0 AS build
COPY env.yml /app/env.yml
WORKDIR /app
RUN pixi init --import /app/env.yml
RUN pixi add conda-forge::procps-ng
FROM ubuntu:lunar AS release
COPY --from=build /app/.pixi/envs/default /app/.pixi/envs/default
ENV PATH="/app/.pixi/envs/default/bin:$PATH"
The above above approach allows the use of a generic base image for the target container image (in place of ubuntu:lunar
)
As a secondary goal, it should be evaluated how to make faster builds using the shared repodata approach as described here.