Skip to content

Commit d1c9382

Browse files
committed
fix: don't override permissions in /usr/local
1 parent 93b4b13 commit d1c9382

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

web-build/Dockerfile.python2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#ddev-generated
2-
COPY --from=python:2.7-slim /usr/local /usr/local
2+
COPY --from=python:2.7-slim /usr/local /tmp/python2-local
33
COPY --from=python:2.7-slim /usr/lib /tmp/python2-libs
44
ARG TARGETARCH
55
RUN <<EOF
66
set -eu -o pipefail
7-
chmod -f ugo+rwx /usr/local/bin
7+
tar -C /tmp/python2-local -cf - . | tar -C /usr/local -xf - --no-overwrite-dir
8+
rm -rf /tmp/python2-local
89
if [ "$TARGETARCH" = "amd64" ]; then
910
LIB_ARCH="x86_64-linux-gnu"
1011
elif [ "$TARGETARCH" = "arm64" ]; then

0 commit comments

Comments
 (0)