更新openssl、kiwix-serve的dockerfile

This commit is contained in:
huty 2024-05-22 10:40:00 +00:00 committed by cloud-init created default user
parent 9ce5290d49
commit 306ed22255
2 changed files with 6 additions and 6 deletions

View File

@ -1,13 +1,13 @@
# 配置参数(指定基础镜像版本) # 配置参数(指定基础镜像版本)
ARG BASE_TAG=15.5 ARG BASE_TAG=15.5
# 基于 openSUSE 构建 # 基于 openSUSE Leap 构建
FROM opensuse/leap:$BASE_TAG FROM opensuse/leap:$BASE_TAG
# 指定端口号 # 指定服务端口号
EXPOSE 10080 EXPOSE 10080
# 配置参数 # 配置参数用户组、用户、HOME目录、安装目录、安装版本等
ARG GROUP_ID=1024 \ ARG GROUP_ID=1024 \
GROUP_NAME=kiwix \ GROUP_NAME=kiwix \
USER_ID=1024 \ USER_ID=1024 \

View File

@ -1,10 +1,10 @@
# 配置参数(指定基础镜像版本) # 配置参数(指定基础镜像版本)
ARG BASE_TAG=15.5 ARG BASE_TAG=15.5
# 基于 openSUSE 构建 # 基于 openSUSE Leap 构建
FROM opensuse/leap:$BASE_TAG FROM opensuse/leap:$BASE_TAG
# 配置参数 # 配置相关参数用户组、用户、HOME目录、安装目录、安装版本等
ARG GROUP_ID=1024 \ ARG GROUP_ID=1024 \
GROUP_NAME=openssl \ GROUP_NAME=openssl \
USER_ID=1024 \ USER_ID=1024 \
@ -27,7 +27,7 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
mkdir -pv $USER_HOME $INSTALL_PATH && \ mkdir -pv $USER_HOME $INSTALL_PATH && \
chown -R $GROUP_NAME.$USER_NAME $USER_HOME $INSTALL_PATH chown -R $GROUP_NAME.$USER_NAME $USER_HOME $INSTALL_PATH
# 安装 OpenSSL # 安装 OpenSSL(安装依赖包、编译安装)
ADD openssl-$OPENSSL_VERSION.tar.gz $USER_HOME ADD openssl-$OPENSSL_VERSION.tar.gz $USER_HOME
RUN zypper install -y perl gcc make && \ RUN zypper install -y perl gcc make && \
cd $USER_HOME && \ cd $USER_HOME && \