-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
25 lines (18 loc) · 818 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM php:7.4-apache
EXPOSE 80
RUN apt-get update -y && \
apt-get install -y apt-utils tree htop libpng-dev libc-client-dev libkrb5-dev libzip-dev zip --no-install-recommends
# Installing php Dependencies
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
docker-php-ext-install -j$(nproc) imap
RUN docker-php-ext-install mysqli gd zip
# Assuming Perfex-CRM root is located in 'pwd'/perfex_crm
RUN a2enmod rewrite
COPY perfex_crm/ /var/www/html/
# Configuring Ownerships and permissions
RUN chown -R www-data:www-data /var/www/html/
RUN chmod 755 /var/www/html/uploads/
RUN chmod 755 /var/www/html/application/config/
RUN chmod 755 /var/www/html/application/config/config.php
RUN chmod 755 /var/www/html/application/config/app-config-sample.php
RUN chmod 755 /var/www/html/temp/