Ai
4 Star 2 Fork 2

Gitee 极速下载/WebLogic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/oracle/docker-images
克隆/下载
Dockerfile 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
# Copyright (c) 2023 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
FROM ghcr.io/oracle/oraclelinux:8
# hadolint shell=/usr/bin/bash
RUN dnf -y module enable php:8.0 httpd:2.4 && \
dnf -y install httpd httpd-filesystem httpd-tools \
mod_http2 mod_ssl openssl \
php php-cli php-common php-json php-mbstring php-mysqlnd php-pdo php-xml && \
rm -rf /var/cache/dnf \
&& \
# Disable event module and enable prefork so that mod_php is enabled
sed -i 's/#LoadModule mpm_prefork_module modules\/mod_mpm_prefork.so/LoadModule mpm_prefork_module modules\/mod_mpm_prefork.so/' /etc/httpd/conf.modules.d/00-mpm.conf && \
sed -i 's/LoadModule mpm_event_module modules\/mod_mpm_event.so/#LoadModule mpm_event_module modules\/mod_mpm_event.so/' /etc/httpd/conf.modules.d/00-mpm.conf && \
# Disable HTTP2 as it is not supported with the prefork module
sed -i 's/LoadModule http2_module modules\/mod_http2.so/#LoadModule http2_module modules\/mod_http2.so/' /etc/httpd/conf.modules.d/10-h2.conf && \
sed -i 's/LoadModule proxy_http2_module modules\/mod_proxy_http2.so/#LoadModule proxy_http2_module modules\/mod_proxy_http2.so/' /etc/httpd/conf.modules.d/10-proxy_h2.conf \
&& \
# Create self-signed certificate for mod_ssl
openssl req -x509 -nodes -newkey rsa:4096 \
-keyout /etc/pki/tls/private/localhost.key \
-out /etc/pki/tls/certs/localhost.crt \
-days 3650 -subj '/CN=localhost' \
&& \
# Redirect logging to stdout/stderr for container logging to work
sed -i 's/;error_log = syslog/error_log = \/dev\/stderr/' /etc/php.ini && \
ln -sf /dev/stdout /var/log/httpd/access_log && \
ln -sf /dev/stderr /var/log/httpd/error_log && \
ln -sf /dev/stdout /var/log/httpd/ssl_access_log && \
ln -sf /dev/stderr /var/log/httpd/ssl_error_log && \
# Disable userdirs and the auto-generated welcome message
rm -f /etc/httpd/conf.d/{userdir.conf,welcome.conf}
EXPOSE 80 443
CMD ["/sbin/httpd", "-DFOREGROUND"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mirrors/WebLogic.git
git@gitee.com:mirrors/WebLogic.git
mirrors
WebLogic
WebLogic
main

搜索帮助