# We take a pixi from phoenix
FROM gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs2/citoolkit/phoenixcontainer/pixi:9.1.0 AS pixi
# We create a temporary environment
WORKDIR /opt/tmp-emv
RUN pixi init . && \
pixi workspace channel add https://prefix.dev/phoenix && \
pixi add rustyphoenixlecture=1.5.0 && \
pixi clean cache -y
FROM gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs2/citoolkit/phoenixcontainer/debian-stable-slim:9.1.0
COPY --from=pixi /opt/tmp-emv/.pixi/envs/default /usr