Skip to content

Instantly share code, notes, and snippets.

@shyd
Last active February 4, 2024 12:17
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shyd/a03bdddb1fe4363d102c4f34822c5be0 to your computer and use it in GitHub Desktop.
Save shyd/a03bdddb1fe4363d102c4f34822c5be0 to your computer and use it in GitHub Desktop.
install php imap in dockerfile
FROM php:5-apache
RUN apt-get update && \
apt-get install -y \
libc-client-dev libkrb5-dev && \
rm -r /var/lib/apt/lists/*
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
docker-php-ext-install -j$(nproc) imap
@maximmandrik
Copy link

Thank you!

@cornzz
Copy link

cornzz commented Jun 28, 2022

thanks!

@stefanoconsole
Copy link

Hello, i try to put this code in dockerfile... but not working.
I try on macos...

@shyd
Copy link
Author

shyd commented Jun 9, 2023

Hello, i try to put this code in dockerfile... but not working.
I try on macos...

Hi, can you tell what does not work? Error output or sth.?

@stefanoconsole
Copy link

The code working correctly, but i've a problem... the imap php extension result not enable

@shyd
Copy link
Author

shyd commented Jun 18, 2023

The code working correctly, but i've a problem... the imap php extension result not enable

Sorry I can't help you with that.

@itsalfredakku
Copy link

Try this

# Enable php-imap
RUN apt-get update && \
    apt-get install -y \
        libc-client-dev libkrb5-dev && \
    rm -r /var/lib/apt/lists/*
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
    docker-php-ext-install -j$(nproc) imap

@MSKhodadady
Copy link

tanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment