Initial setup

This commit is contained in:
jannisp 2021-04-01 13:51:42 +02:00
commit 981be34284
5 changed files with 82 additions and 0 deletions

26
Dockerfile Normal file
View file

@ -0,0 +1,26 @@
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