We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8cde46 commit 1b067e7Copy full SHA for 1b067e7
Dockerfile
@@ -80,11 +80,11 @@ RUN set -eux; \
80
\
81
apk del .build-deps
82
83
-RUN echo 'Wait for it...' \
84
- && sed -i 's/CipherString = DEFAULT@SECLEVEL=2/CipherString = DEFAULT@SECLEVEL=1/g' /etc/ssl/openssl.cnf \
85
- || echo 'CipherString = DEFAULT@SECLEVEL=1' >> /etc/ssl/openssl.cnf
86
-
87
-COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
+RUN if grep -q "SECLEVEL=2" /etc/ssl/openssl.cnf; then \
+ sed -i 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf; \
+ else \
+ echo 'CipherString = DEFAULT@SECLEVEL=1' >> /etc/ssl/openssl.cnf; \
+ fi
88
89
RUN ln -s $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini
90
COPY docker/php/conf.d/symfony.ini $PHP_INI_DIR/conf.d/symfony.ini
0 commit comments