Skip to content

Commit

Permalink
fix(wolfi): Remove local repository reference
Browse files Browse the repository at this point in the history
This is used when building packages locally so that they can be more
easily installed. While helpful for quickly installing built packages,
this gets hardcoded to the GitHub workspace directory and half the time
an explicit installation path ends up being used anyway
  • Loading branch information
EyeCantCU committed Feb 8, 2024
1 parent ef33886 commit 0da8881
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions toolboxes/wolfi-toolbox/Containerfile.wolfi
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ LABEL com.github.containers.toolbox="true" \

COPY ./toolboxes/wolfi-toolbox/packages.wolfi /toolbox-packages

# Update image
RUN apk update && \
# Remove local repository and update image
RUN sed -i 's/@local.*//g' /etc/apk/repositories \
apk update && \
apk upgrade

# Add optional packages
Expand Down Expand Up @@ -47,4 +48,4 @@ RUN [ -e /sbin/su-exec ] && \
chmod u+s /sbin/su-exec && \
[ ! -e /usr/bin/sudo ] && \
printf "%s\n%s" '#!/bin/sh' '/sbin/su-exec root "$@"' > /usr/bin/sudo && \
chmod +x /usr/bin/sudo
chmod +x /usr/bin/sudo

0 comments on commit 0da8881

Please sign in to comment.