Skip to content

Commit

Permalink
change micromamba installation strategy specific to wolfi distro
Browse files Browse the repository at this point in the history
  • Loading branch information
SubhasmitaSw committed Nov 7, 2024
1 parent a390c0c commit 6fd12c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def build_and_publish_image(client, os_version, cuda_version, container_ty
.with_user("root")
.with_workdir("/app")
# Install Micromamba
.with_exec(["/bin/sh", "-c", "apk add --no-cache curl && export SHELL=/bin/sh && curl -Ls https://micro.mamba.pm/install.sh | /bin/sh"])
.with_exec(["/bin/sh", "-c", "apk add --no-cache curl bash && curl -Ls https://micro.mamba.pm/install.sh | bash && apk del bash"])
# Install packages using Micromamba
.with_exec(["/bin/sh", "-c", f"micromamba install -y -n base -c conda-forge {container_type} python={python_version} && micromamba clean --all --yes && micromamba list"])
.with_label("org.opencontainers.image.source", f"https://github.com/{username}/{repository}")
Expand Down

0 comments on commit 6fd12c9

Please sign in to comment.