Skip to content

Commit d726f54

Browse files
committed
fix: dependencies added
1 parent 1b067e7 commit d726f54

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

Dockerfile

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff 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

4347
ARG 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]\nopenssl_conf = default_conf\n\n[default_conf]\nssl_conf = ssl_sect\n\n[ssl_sect]\nsystem_default = system_default_sect\n\n[system_default_sect]\nCipherString = 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]\nopenssl_conf = default_conf\n\n[default_conf]\nssl_conf = ssl_sect\n\n[ssl_sect]\nsystem_default = system_default_sect\n\n[system_default_sect]\nCipherString = DEFAULT@SECLEVEL=1\n" > /etc/ssl/openssl.cnf; \
8796
fi
8897

98+
RUN update-ca-certificates || true
99+
89100
RUN ln -s $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini
90101
COPY 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
152163
EXPOSE 80
153164

154165
RUN 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

0 commit comments

Comments
 (0)