byob
byob copied to clipboard
When I built the i386 image

I use this docker file to solve the problem of i386 image
I downloaded the files I needed offline
FROM i386/ubuntu:18.04
SHELL ["/bin/bash", "-i", "-c"]
COPY pyenv-installer /pyenv-installer
COPY entrypoint-linux.sh /entrypoint.sh
ARG PYTHON_VERSION=3.7.9
ARG PYINSTALLER_VERSION=3.6
ENV PYPI_URL=https://pypi.python.org/
ENV PYPI_INDEX_URL=https://pypi.python.org/simple
ENV PYENV_VERSION=${PYTHON_VERSION}
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
wget \
git \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
zlib1g-dev \
libffi-dev \
libgdbm-dev \
uuid-dev \
upx \
&& mkdir openssl \
&& cd openssl \
&& wget https://www.openssl.org/source/openssl-1.1.1h.tar.gz \
&& tar -xzvf openssl-1.1.1h.tar.gz \
&& cd openssl-1.1.1h \
&& ./Configure linux-generic32 --prefix=$HOME/openssl --openssldir=$HOME/openssl shared zlib \
&& make \
&& make install \
&& echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc \
&& echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc \
&& source ~/.bashrc \
&& bash /pyenv-installer \
&& echo 'eval "$(pyenv init -)"' >> ~/.bashrc \
&& source ~/.bashrc \
&& PATH="$HOME/openssl:$PATH" \
CPPFLAGS="-O2 -I$HOME/openssl/include" \
CFLAGS="-I$HOME/openssl/include/" \
LDFLAGS="-L$HOME/openssl/lib -Wl,-rpath,$HOME/openssl/lib" \
LD_LIBRARY_PATH=$HOME/openssl/lib:$LD_LIBRARY_PATH \
LD_RUN_PATH="$HOME/openssl/lib" \
CONFIGURE_OPTS="--with-openssl=$HOME/openssl" \
PYTHON_CONFIGURE_OPTS="--enable-shared" \
pyenv install $PYTHON_VERSION \
&& apt-get clean \
&& apt-get autoclean \
&& pyenv global $PYTHON_VERSION \
&& pip install --upgrade pip \
&& pip install pyinstaller==$PYINSTALLER_VERSION \
&& mkdir /src/ \
&& rm -rf /pyenv-installer \
&& apt-get clean \
&& apt-get autoclean \
&& chmod +x /entrypoint.sh
VOLUME /src/
WORKDIR /src/
ENTRYPOINT ["/entrypoint.sh"]
go to the discord