File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ RUN apk add --no-cache \
3838 gettext \
3939 git \
4040 jq \
41+ openssl \
42+ ca-certificates \
43+ procps \
44+ netcat-openbsd \
4145 ;
4246
4347ARG APCU_VERSION=5.1.18
@@ -80,12 +84,19 @@ RUN set -eux; \
8084 \
8185 apk del .build-deps
8286
83- RUN if grep -q "SECLEVEL=2" /etc/ssl/openssl.cnf; then \
84- sed -i 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf; \
87+ RUN if [ -f /etc/ssl/openssl.cnf ]; then \
88+ if grep -q "SECLEVEL" /etc/ssl/openssl.cnf 2>/dev/null; then \
89+ sed -i 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf || true; \
90+ else \
91+ printf "\n # added to allow legacy DH for legacy SMTP servers (temporary)\n [openssl_init]\n openssl_conf = default_conf\n\n [default_conf]\n ssl_conf = ssl_sect\n\n [ssl_sect]\n system_default = system_default_sect\n\n [system_default_sect]\n CipherString = DEFAULT@SECLEVEL=1\n " >> /etc/ssl/openssl.cnf; \
92+ fi; \
8593 else \
86- echo 'CipherString = DEFAULT@SECLEVEL=1' >> /etc/ssl/openssl.cnf; \
94+ # si por alguna razón no existe el fichero, creamos uno mínimo
95+ printf "[openssl_init]\n openssl_conf = default_conf\n\n [default_conf]\n ssl_conf = ssl_sect\n\n [ssl_sect]\n system_default = system_default_sect\n\n [system_default_sect]\n CipherString = DEFAULT@SECLEVEL=1\n " > /etc/ssl/openssl.cnf; \
8796 fi
8897
98+ RUN update-ca-certificates || true
99+
89100RUN ln -s $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini
90101COPY docker/php/conf.d/symfony.ini $PHP_INI_DIR/conf.d/symfony.ini
91102
@@ -152,7 +163,7 @@ FROM httpd:${APACHE_VERSION} AS lock_httpd
152163EXPOSE 80
153164
154165RUN apt-get update; \
155- apt-get install -y liblasso3 curl; \
166+ apt-get install -y liblasso3 curl openssl ca-certificates ; \
156167 apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
157168 mkdir -p /srv/app/public/cache /srv/app/public/images
158169
You can’t perform that action at this time.
0 commit comments