Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed multi-stage docker build mamba env copy paths #272

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jacquayj
Copy link

@jacquayj jacquayj commented Jan 30, 2025

Resolves error:

=> ERROR [stage-1 4/9] COPY --from=builder --chown=appuser:appuser /home/appuser/micromamba /home/appuser/micromamba                                                                                                                                                   0.0s
------
 > [stage-1 4/9] COPY --from=builder --chown=appuser:appuser /home/appuser/micromamba /home/appuser/micromamba:
------
Dockerfile:43
--------------------
  41 |     
  42 |     # Copy the Conda environment and application code from the builder stage
  43 | >>> COPY --from=builder --chown=$APPUSER:$APPUSER $HOME/micromamba $HOME/micromamba
  44 |     COPY --from=builder --chown=$APPUSER:$APPUSER $HOME/bin $HOME/bin
  45 |     COPY --from=builder --chown=$APPUSER:$APPUSER $HOME/$DIR_NAME $HOME/$DIR_NAME
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 9428aca3-383b-4a6f-862c-d3eef5b31344::mi9m9scluvmxcsatnrz0ge8p4: "/home/appuser/micromamba": not found

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/8inf24d4zcpc8zj0rktkm6zcx

I suspect the behavior of micromamba changed since it wasn't pinned to a particular version:

# Install micromamba
RUN curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xj bin/micromamba
  • Updated Dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant