Skip to content

Instantly share code, notes, and snippets.

@shyd
Last active February 4, 2024 12:17
Show Gist options
  • 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
@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