kingkay000 commited on
Commit
8fdad5d
·
verified ·
1 Parent(s): 8a532c0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,7 +1,6 @@
1
  FROM php:8.2-apache
2
 
3
  # 1. Install system dependencies
4
- # Added libssl-dev and the common build tools
5
  RUN apt-get update && apt-get install -y \
6
  libpng-dev \
7
  libonig-dev \
@@ -11,12 +10,13 @@ RUN apt-get update && apt-get install -y \
11
  libc-client-dev \
12
  libkrb5-dev \
13
  libssl-dev \
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
- # 2. CREATE SYMLINKS (This is the "secret sauce" for IMAP on Debian)
17
- # This prevents the "not found" errors during configuration
18
- RUN ln -s /usr/lib/x86_64-linux-gnu/libkrb5.so /usr/lib/libkrb5.so \
19
- && ln -s /usr/lib/x86_64-linux-gnu/libc-client.so /usr/lib/libc-client.so
20
 
21
  # 3. Configure and Install IMAP
22
  RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
 
1
  FROM php:8.2-apache
2
 
3
  # 1. Install system dependencies
 
4
  RUN apt-get update && apt-get install -y \
5
  libpng-dev \
6
  libonig-dev \
 
10
  libc-client-dev \
11
  libkrb5-dev \
12
  libssl-dev \
13
+ libldap2-dev \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # 2. CREATE SYMLINKS
17
+ # We use -f to force the link in case it already exists, preventing build crashes
18
+ RUN ln -sf /usr/lib/x86_64-linux-gnu/libkrb5.so /usr/lib/libkrb5.so \
19
+ && ln -sf /usr/lib/x86_64-linux-gnu/libc-client.so /usr/lib/libc-client.so
20
 
21
  # 3. Configure and Install IMAP
22
  RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl \