You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be evaluated the sue of multi-stage build for Conda based containers. For example
FROM mambaorg/micromamba:1.5.10-noble
COPY --chown=$MAMBA_USER:$MAMBA_USER conda.yml /tmp/conda.yml
RUN micromamba install -y -n base -f /tmp/conda.yml \
&& micromamba install -y -n base conda-forge::procps-ng \
&& micromamba env export --name base --explicit > environment.lock \
&& echo ">> CONDA_LOCK_START" \
&& cat environment.lock \
&& echo "<< CONDA_LOCK_END" \
&& micromamba clean -a -y
USER root
FROM ubuntu:noble
COPY --from=0 /opt/conda /opt/conda
USER root
ENV PATH="/opt/conda/bin:$PATH"
This would result in:
slightly smaller container images
ability to control the base image independently of the build image
The text was updated successfully, but these errors were encountered:
pditommaso
changed the title
Consider using mult-stage build for Conda based containers
Consider using multi-stage build for Conda based containers
Oct 10, 2024
It should be evaluated the sue of multi-stage build for Conda based containers. For example
This would result in:
The text was updated successfully, but these errors were encountered: