# We take a pixi from phoenix
FROM gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs2/citoolkit/phoenixcontainer/pixi:9.1.0@sha256:120803b17e8b6b9e332aa1e6b1cf763283964c4cd64bd976315a7e6177bd4694 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@sha256:1e3b6d6008bb95c3e9fb4c5de4f1cdbfa44f85a3868d16b9dc37cbe3856e9d6a
COPY --from=pixi /opt/tmp-emv/.pixi/envs/default /usr