File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ RUN apk add --update --virtual .build-deps \
2222 && python3 -m venv /app/.venv \
2323 && source /app/.venv/bin/activate \
2424 && pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt \
25- && find /app/.venv/lib/ -type f -executable ! -path '*/cryptography*' -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
25+ && find /app/.venv /usr/local -type f -executable ! -path '*/cryptography*' -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
2626 | tr ',' '\n ' \
2727 | sort -u \
28- | awk 'system("[ -e /app/.venv/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
28+ | awk 'system("[[ -e /app/.venv/lib/" $1 " || -e /usr/local/lib/" $1 " ] ]") == 0 { next } { print "so:" $1 }' \
2929 | xargs -rt apk add --no-cache --virtual .python-rundeps \
3030 && apk add --update --virtual .passport-rundeps \
3131 ca-certificates \
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >>/etc/apk/repositor
2121 && source /app/.venv/bin/activate \
2222 && pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt \
2323 && pip3 install --disable-pip-version-check --no-cache-dir -r /app/dev_requirements.txt \
24- && find /app/.venv/lib/ -type f -executable ! -path '*/cryptography*' -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
24+ && find /app/.venv /usr/local -type f -executable ! -path '*/cryptography*' -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
2525 | tr ',' '\n' \
2626 | sort -u \
27- | awk 'system("[ -e /app/.venv/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
27+ | awk 'system("[[ -e /app/.venv/lib/" $1 " || -e /usr/local/lib/" $1 " ] ]") == 0 { next } { print "so:" $1 }' \
2828 | xargs -rt apk add --no-cache --virtual .python-rundeps \
2929 && apk add --update --virtual .passport-rundeps \
3030 git \
You can’t perform that action at this time.
0 commit comments