This commit is contained in:
2026-08-26 21:07:04 -03:00
parent a6c6d4d2c7
commit 6f27fa0a05
+3 -9
View File
@@ -2,7 +2,6 @@ FROM ubuntu:24.04 AS builder
ARG OPENSSL_VERSION=1.1.1w
ARG PYTHON_VERSION=2.7.18
ARG BUILD_JOBS=2
ENV DEBIAN_FRONTEND=noninteractive \
OPENSSL_ROOT=/opt/openssl-1.1.1 \
@@ -39,7 +38,7 @@ RUN curl -fsSL \
--openssldir="${OPENSSL_ROOT}/ssl" \
--libdir=lib \
shared zlib \
&& make -s -j"${BUILD_JOBS}" \
&& make -s -j2 \
&& make -s install_sw \
&& mkdir -p "${OPENSSL_ROOT}/ssl" \
&& cp apps/openssl.cnf "${OPENSSL_ROOT}/ssl/openssl.cnf" \
@@ -60,7 +59,7 @@ RUN curl -fsSL \
--enable-shared \
--enable-unicode=ucs4 \
--with-ensurepip=no \
&& make -s -j"${BUILD_JOBS}" \
&& make -s -j2 \
&& make -s install \
&& "${PYTHON_ROOT}/bin/python2" -c \
"import ssl; assert ssl.OPENSSL_VERSION.startswith('OpenSSL ${OPENSSL_VERSION}'), ssl.OPENSSL_VERSION; print(ssl.OPENSSL_VERSION)" \
@@ -119,11 +118,6 @@ RUN apt-get update \
COPY --from=builder /opt/openssl-1.1.1 /opt/openssl-1.1.1
COPY --from=builder /opt/python2 /opt/python2
RUN useradd --create-home --shell /bin/bash tins \
&& python2 -c \
"import ssl; assert ssl.OPENSSL_VERSION.startswith('OpenSSL 1.1.1w'), ssl.OPENSSL_VERSION; print(ssl.OPENSSL_VERSION)" \
&& python2 -c \
"import bz2, ctypes, sqlite3, readline, zlib, MySQLdb, numpy, scipy, lxml, PIL, OpenSSL, signxml; print('runtime imports: ok')" \
&& pip2 check
RUN useradd --create-home --shell /bin/bash tins
WORKDIR /home/tins