-
Notifications
You must be signed in to change notification settings - Fork 2k
Dockerfile fails when installing imap : OpenSSL Library not found #924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
question
Usability question, not directly related to an error with the image
Comments
Duplicate of #891 imap isn't detecting |
I changed out all the FROM php:7.4.0-fpm
LABEL maintainer="John Doe <[email protected]>"
RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y \
g++ \
libbz2-dev \
libc-client-dev \
libcurl4-gnutls-dev \
libedit-dev \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libkrb5-dev \
libldap2-dev \
libldb-dev \
libmagickwand-dev \
libmcrypt-dev \
libmemcached-dev \
libpq-dev \
libsqlite3-dev \
libssl-dev \
libreadline-dev \
libkrb5-dev \
libxslt1-dev \
libzip-dev \
memcached \
wget \
unzip \
zlib1g-dev \
&& docker-php-ext-configure gd \
--with-freetype \
--with-jpeg \
&& docker-php-ext-install -j$(nproc) gd \
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install -j$(nproc) imap \
&& docker-php-ext-configure intl \
&& docker-php-ext-install -j$(nproc) intl \
&& docker-php-ext-configure ldap \
&& docker-php-ext-install ldap \
&& docker-php-ext-install -j$(nproc) \
bcmath \
bz2 \
calendar \
exif \
gettext \
mysqli \
opcache \
pdo_mysql \
pdo_pgsql \
pgsql \
soap \
sockets \
xmlrpc \
xsl \
&& docker-php-ext-configure zip \
&& docker-php-ext-install zip \
&& pecl install xdebug && docker-php-ext-enable xdebug \
&& pecl install memcached && docker-php-ext-enable memcached \
&& pecl install mongodb && docker-php-ext-enable mongodb \
&& pecl install redis && docker-php-ext-enable redis \
&& yes '' | pecl install imagick && docker-php-ext-enable imagick \
&& docker-php-source delete \
&& apt-get remove -y g++ wget \
&& apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* /var/tmp/* $ docker build . -t php:test
Sending build context to Docker daemon 6.144kB
Step 1/3 : FROM php:7.4.0-fpm
---> 0203f6c79234
Step 2/3 : LABEL maintainer="John Doe <[email protected]>"
---> Using cache
---> e005c3dc2450
Step 3/3 : RUN apt-get update && apt-get upgrade -y && apt-get install -y g++ libbz2-dev libc-client-dev libcurl4-gnutls-dev libedit-dev libfreetype6-dev libicu-dev libjpeg62-turbo-dev libkrb5-dev libldap2-dev libldb-dev libmagickwand-dev libmcrypt-dev libmemcached-dev libpq-dev libsqlite3-dev libssl-dev libreadline-dev libkrb5-dev libxslt1-dev libzip-dev memcached wget unzip zlib1g-dev && docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install -j$(nproc) gd && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl && docker-php-ext-install -j$(nproc) imap && docker-php-ext-configure intl && docker-php-ext-install -j$(nproc) intl && docker-php-ext-configure ldap && docker-php-ext-install ldap && docker-php-ext-install -j$(nproc) bcmath bz2 calendar exif gettext mysqli opcache pdo_mysql pdo_pgsql pgsql soap sockets xmlrpc xsl && docker-php-ext-configure zip && docker-php-ext-install zip && pecl install xdebug && docker-php-ext-enable xdebug && pecl install memcached && docker-php-ext-enable memcached && pecl install mongodb && docker-php-ext-enable mongodb && pecl install redis && docker-php-ext-enable redis && yes '' | pecl install imagick && docker-php-ext-enable imagick && docker-php-source delete && apt-get remove -y g++ wget && apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* /var/tmp/*
---> Using cache
---> 46a56f6065a8
Successfully built 46a56f6065a8
Successfully tagged php:test Closing since this is resolved, if you have other questions you could also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I tried to build my php-fpm image but it fails when installing the imap extension with openssl.
No problem with versions lower than php 7.4.
There is no longer an error when I comment on the line relating to imap. The path to the openssl library was not found.
If anyone had an idea, it would be nice.
Dockerfile :
logs :
Vincent.
The text was updated successfully, but these errors were encountered: