我是 Docker 初学者,我想使用 Debian 的官方容器镜像定制自己的容器镜像。不过,官方平台提供的容器镜像自带Python环境,为Python 3.11版本,64位。我现在不希望它带有自己的Python环境,或者我该如何处理它才能带有32位Python 3.8?
Dockerfile:
#FROM debian:latest
#FROM debian:bookworm
FROM debian:bullseye-slim
#FROM debian:11-slim
#FROM ubuntu:20.04-i386
# for 32bit
RUN dpkg --add-architecture i386
RUN apt-get update -y
RUN apt-get upgrade -y
#RUN apt-get install -y --no-install-recommends python
RUN apt-get remove --purge python3 -y
#RUN apt-get install python3.8:i386 -y
RUN apt-get install net-tools \
uml-utilities \
bridge-utils\
iputils-ping \
vim \
openssh-server \
openssh-client \
curl \
gpg \
psmisc \
samba \
samba-common \
redis \
unzip \
file \
libc-bin \
dos2unix \
mosquitto \
-y
RUN apt-get install libc6:i386 -y
RUN apt-get install lib32stdc++6 -y