Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion feapder_dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
FROM registry.cn-hangzhou.aliyuncs.com/feapderd/feapder:2.4

# 安装依赖
RUN yum update -y && yum install -y openssl openssl-devel

# 安装自定义的openssl版本,1.1.1
RUN set -ex \
&& wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz \
&& wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz.sha256 \
# && sha256sum openssl-1.1.1g.tar.gz \
&& tar -zxvf openssl-1.1.1g.tar.gz \
&& cd openssl-1.1.1g \
&& ./config --prefix=/usr/local/openssl-1.1.1 --openssldir=/usr/local/openssl-1.1.1 no-ssl2 \
&& make \
&& make install \
&& make clean \
&& rm -rf /openssl-1.1.1*

# 安装自定义的python版本,3.10.8
RUN set -ex \
&& wget https://www.python.org/ftp/python/3.10.8/Python-3.10.8.tgz \
&& tar -zxvf Python-3.10.8.tgz \
&& cd Python-3.10.8 \
&& ./configure prefix=/usr/local/python-3.10.8 \
&& ./configure --prefix=/usr/local/python-3.10.8 --with-openssl=/usr/local/openssl-1.1.1 --with-openssl-rpath=auto \
&& make \
&& make install \
&& make clean \
Expand Down