
# We take a pixi from phoenix
FROM gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs2/citoolkit/phoenixcontainer/pixi:9.4.0@sha256:78e3a7e90c9270247b10639de394066a3683969302afb67923fbccb39c609036 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.18.5 && \
	pixi clean cache -y

FROM gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs2/citoolkit/phoenixcontainer/debian-stable-slim:9.4.0@sha256:b7c66377f6414f9a521af2978ab2693938f12a075b3c5cbc1ce98f7972955281

COPY --from=pixi /opt/tmp-emv/.pixi/envs/default /usr

