File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
OracleLinuxDevelopers/oraclelinux9/httpd/2.4 Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,15 @@ FROM ghcr.io/oracle/oraclelinux:9
33RUN dnf install -y httpd mod_ssl && \
44 rm -rf /var/cache/dnf
55
6- ENV CERTIFICATE_DIR /etc/pki/tls/certs
7- ENV KEY_DIR /etc/pki/tls/private
6+ RUN sed -i \
7+ -e 's/^SSLCertificateFile .*/SSLCertificateFile \/ certs\/ fullchain.pem/g' \
8+ -e 's/^SSLCertificateKeyFile .*/SSLCertificateKeyFile \/ certs\/ privkey.pem/g' \
9+ /etc/httpd/conf.d/ssl.conf
10+
11+ RUN mkdir -p /certs
12+
13+ ENV CERTIFICATE_DIR /certs
14+ ENV KEY_DIR /certs
815
916COPY ./entrypoint.sh /opt/entrypoint.sh
1017
Original file line number Diff line number Diff line change 22
33set -eu pipefail
44
5- SERVER_CERT=" $CERTIFICATE_DIR /localhost.crt "
6- SERVER_KEY=" $KEY_DIR /localhost.key "
5+ SERVER_CERT=" $CERTIFICATE_DIR /fullchain.pem "
6+ SERVER_KEY=" $KEY_DIR /privkey.pem "
77
88if [ ! -f " $SERVER_KEY " ]; then
99 echo " Generating certificate private key for SSL support"
You can’t perform that action at this time.
0 commit comments