27 lines
883 B
Docker
27 lines
883 B
Docker
|
FROM php:7.4-apache
|
||
|
|
||
|
# Install wget
|
||
|
RUN apt-get update && apt-get install -y wget unzip
|
||
|
|
||
|
# Install PHP extensions
|
||
|
RUN apt-get install -y libc-client-dev libkrb5-dev && rm -r /var/lib/apt/lists/* && docker-php-ext-configure imap --with-kerberos --with-imap-ssl && docker-php-ext-install imap
|
||
|
RUN pecl install mailparse && \
|
||
|
docker-php-ext-enable mailparse
|
||
|
RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql
|
||
|
|
||
|
# Download files
|
||
|
RUN wget -O download.zip https://cdn.uvdesk.com/uvdesk/downloads/opensource/uvdesk-community-current-stable.zip
|
||
|
RUN unzip download.zip && \
|
||
|
rm download.zip
|
||
|
|
||
|
# Move to correct location
|
||
|
RUN mv uvdesk-* ../uvdesk
|
||
|
WORKDIR /var/www
|
||
|
|
||
|
# Set apache settings
|
||
|
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
|
||
|
RUN a2enmod rewrite && service apache2 restart
|
||
|
|
||
|
# Change owner
|
||
|
RUN chown -R www-data /var/www/uvdesk
|