mirror of
https://github.com/linuxserver/docker-baseimage-alpine.git
synced 2026-02-20 00:47:04 +08:00
Fix apk path
This commit is contained in:
parent
b7b477c8d6
commit
34eee09951
@ -7,7 +7,7 @@ if [ -f "/mod-repo-packages-to-install.list" ]; then
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends \
|
||||
$(cat /mod-repo-packages-to-install.list)
|
||||
elif [ -f /usr/bin/apk ]; then
|
||||
elif [ -f /sbin/apk ]; then
|
||||
apk add --no-cache \
|
||||
$(cat /mod-repo-packages-to-install.list)
|
||||
fi
|
||||
@ -18,7 +18,7 @@ if [ -f "/mod-pip-packages-to-install.list" ]; then
|
||||
python3 -m pip install -U pip wheel setuptools
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
PIP_ARGS="-f https://wheel-index.linuxserver.io/ubuntu/"
|
||||
elif [ -f /usr/bin/apk ]; then
|
||||
elif [ -f /sbin/apk ]; then
|
||||
ALPINE_VER=$(grep main /etc/apk/repositories | sed 's|.*alpine/v||' | sed 's|/main.*||')
|
||||
if [ "${ALPINE_VER}" = "3.14" ]; then
|
||||
PIP_ARGS="-f https://wheel-index.linuxserver.io/alpine/"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user