chore: remove Python from main Docker image (#12431)
This commit is contained in:
parent
90e76f9adb
commit
372a3219f3
|
|
@ -13,11 +13,6 @@ RUN apt-get update && \
|
||||||
# Feature-parity with node.js base images.
|
# Feature-parity with node.js base images.
|
||||||
apt-get install -y --no-install-recommends git openssh-client && \
|
apt-get install -y --no-install-recommends git openssh-client && \
|
||||||
npm install -g yarn && \
|
npm install -g yarn && \
|
||||||
# Install Python 3.8
|
|
||||||
apt-get install -y python3.8 python3-pip && \
|
|
||||||
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 && \
|
|
||||||
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
|
|
||||||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1 && \
|
|
||||||
# clean apt cache
|
# clean apt cache
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
# Create the pwuser (we internally create a symlink for the pwuser and the root user)
|
# Create the pwuser (we internally create a symlink for the pwuser and the root user)
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,6 @@ RUN apt-get update && \
|
||||||
# Feature-parity with node.js base images.
|
# Feature-parity with node.js base images.
|
||||||
apt-get install -y --no-install-recommends git openssh-client && \
|
apt-get install -y --no-install-recommends git openssh-client && \
|
||||||
npm install -g yarn && \
|
npm install -g yarn && \
|
||||||
# Install Python 3.8
|
|
||||||
apt-get install -y python3.8 python3-pip && \
|
|
||||||
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 && \
|
|
||||||
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
|
|
||||||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1 && \
|
|
||||||
# clean apt cache
|
# clean apt cache
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
# Create the pwuser
|
# Create the pwuser
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue