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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -12
Dockerfile CHANGED
@@ -13,30 +13,27 @@ RUN apt-get update && apt-get install -y \
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 \
23
  && docker-php-ext-install imap
24
 
25
- # 4. Install MySQLi
26
  RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
27
 
28
- # 5. Enable Apache Rewrite and set port
29
  RUN a2enmod rewrite
30
  RUN sed -i 's/80/7860/g' /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf
31
 
32
- # 6. Setup files
33
  WORKDIR /var/www/html
34
  COPY . .
35
 
36
- # 7. Set permissions
37
  RUN chown -R www-data:www-data /var/www/html/bank-update || true
38
 
39
- # 8. Link the Apache config
40
  COPY apache-config.conf /etc/apache2/sites-available/000-default.conf
41
 
42
  CMD ["apache2-foreground"]
 
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
23
  RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
24
 
25
+ # 4. Enable Apache Rewrite and set port
26
  RUN a2enmod rewrite
27
  RUN sed -i 's/80/7860/g' /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf
28
 
29
+ # 5. Setup files
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
37
  COPY apache-config.conf /etc/apache2/sites-available/000-default.conf
38
 
39
  CMD ["apache2-foreground"]