Skip to content

Commit

Permalink
install pkgs via wolfi pkg manager
Browse files Browse the repository at this point in the history
  • Loading branch information
SubhasmitaSw committed Nov 7, 2024
1 parent c789ae6 commit befd00b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ async def build_and_publish_image(client, os_version, cuda_version, container_ty
.from_(base_image)
.with_user("root")
.with_workdir("/app")
.with_exec(["/bin/sh", "-c", f"apk update && apk add --no-cache {container_type} python3={python_version} py3-pip && pip install --upgrade pip"])
# Install packages using wolfi's package manager
.with_exec(["/bin/ash", "-c", f"apk add --no-cache {container_type} python={python_version} && apk list"])
.with_label("org.opencontainers.image.source", f"https://github.com/{username}/{repository}")
.with_registry_auth(address="ghcr.io", username=username, secret=secret)
)
Expand Down

0 comments on commit befd00b

Please sign in to comment.