42 lines
1.2 KiB
Docker
42 lines
1.2 KiB
Docker
|
FROM debian:stable-slim
|
||
|
|
||
|
RUN apt update && apt dist-upgrade -y
|
||
|
|
||
|
RUN apt-get -y install lsb-release ca-certificates curl
|
||
|
RUN curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
||
|
RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
|
||
|
RUN apt-get update
|
||
|
|
||
|
RUN apt install -y \
|
||
|
php7.4-dom php7.4-gd php7.4-curl php7.4-intl php7.4-zip php7.4-bcmath \
|
||
|
sqlite3 php7.4-sqlite3 build-essential elinks unzip xlsx2csv psutils \
|
||
|
php7.4-memcached php7.4-memcached php7.4-opcache php7.4-intl php7.4-gd \
|
||
|
php7.4-mysql php7.4-ldap php7.4-dom php7.4-zip php7.4-ldap \
|
||
|
php7.4-fpm php7.4-mysql php7.4-mbstring \
|
||
|
composer curl
|
||
|
|
||
|
RUN apt install -y \
|
||
|
apache2 apache2-utils libapache2-mod-php7.4
|
||
|
|
||
|
RUN a2enmod rewrite alias authz_user ssl
|
||
|
|
||
|
WORKDIR /var/www/html/
|
||
|
|
||
|
RUN git clone https://gitlab.com/tikiwiki/tiki.git
|
||
|
|
||
|
WORKDIR ./tiki
|
||
|
|
||
|
RUN chown -R www-data:www-data /var/www/html/tiki
|
||
|
|
||
|
COPY conf/www.conf /etc/php/7.4/fpm/pool.d/www.conf
|
||
|
COPY conf/php-fpm.conf /etc/php/7.4/fpm/php-fpm.conf
|
||
|
|
||
|
ADD start.sh /start.sh
|
||
|
ADD entrypoint.sh /entrypoint.sh
|
||
|
|
||
|
VOLUME ["/uploads"]
|
||
|
|
||
|
ENTRYPOINT [ "/bin/sh", "/entrypoint.sh" ]
|
||
|
|
||
|
CMD "/start.sh"
|