We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93b4b13 commit d1c9382Copy full SHA for d1c9382
1 file changed
web-build/Dockerfile.python2
@@ -1,10 +1,11 @@
1
#ddev-generated
2
-COPY --from=python:2.7-slim /usr/local /usr/local
+COPY --from=python:2.7-slim /usr/local /tmp/python2-local
3
COPY --from=python:2.7-slim /usr/lib /tmp/python2-libs
4
ARG TARGETARCH
5
RUN <<EOF
6
set -eu -o pipefail
7
-chmod -f ugo+rwx /usr/local/bin
+tar -C /tmp/python2-local -cf - . | tar -C /usr/local -xf - --no-overwrite-dir
8
+rm -rf /tmp/python2-local
9
if [ "$TARGETARCH" = "amd64" ]; then
10
LIB_ARCH="x86_64-linux-gnu"
11
elif [ "$TARGETARCH" = "arm64" ]; then
0 commit comments