kingkay000 commited on
Commit
6d64d3f
·
verified ·
1 Parent(s): 6400816

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -1,6 +1,6 @@
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 \
@@ -13,10 +13,9 @@ RUN apt-get update && apt-get install -y \
13
  libldap2-dev \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
- # 2. Configure IMAP with explicit paths (This bypasses the search error)
17
- RUN docker-php-ext-configure imap \
18
- --with-kerberos=/usr/include/x86_64-linux-gnu/ \
19
- --with-imap-ssl=/usr/include/x86_64-linux-gnu/ \
20
  && docker-php-ext-install imap
21
 
22
  # 3. Install MySQLi
@@ -30,7 +29,7 @@ RUN sed -i 's/80/7860/g' /etc/apache2/ports.conf /etc/apache2/sites-available/00
30
  WORKDIR /var/www/html
31
  COPY . .
32
 
33
- # 6. Set permissions
34
  RUN chown -R www-data:www-data /var/www/html/bank-update || true
35
 
36
  # 7. Link the Apache config
 
1
  FROM php:8.2-apache
2
 
3
+ # 1. Install all required libraries in one go
4
  RUN apt-get update && apt-get install -y \
5
  libpng-dev \
6
  libonig-dev \
 
13
  libldap2-dev \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # 2. Configure and Install IMAP (Simplified syntax)
17
+ # We use --with-imap and --with-imap-ssl without forced paths to let the compiler auto-detect
18
+ RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
 
19
  && docker-php-ext-install imap
20
 
21
  # 3. Install MySQLi
 
29
  WORKDIR /var/www/html
30
  COPY . .
31
 
32
+ # 6. Set permissions (Using the folder from your code)
33
  RUN chown -R www-data:www-data /var/www/html/bank-update || true
34
 
35
  # 7. Link the Apache config