diff --git a/Dockerfile b/Dockerfile index a4ae70fc..09123a9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,10 @@ RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https: RUN apt-get update RUN apt install -y \ - tesseract-ocr sudo + tesseract-ocr tesseract-ocr-spa sudo -RUN apt install -y r-base r-base-dev r-recommended imagemagick +RUN apt install -y r-base r-base-dev r-recommended imagemagick ffmpeg python3 \ + mariadb-client unoconv RUN apt remove -y php-cli && apt install -y php${PHP_VERSION}-cli @@ -30,10 +31,12 @@ RUN apt install -y \ RUN update-alternatives --install /usr/bin/php php /usr/bin/php${PHP_VERSION} 99 --force +RUN ln -s /usr/bin/python3 /usr/bin/python + RUN apt install -y \ apache2 apache2-utils libapache2-mod-php${PHP_VERSION} -RUN a2enmod rewrite alias authz_user ssl +RUN a2enmod rewrite alias authz_user ssl security RUN addgroup --gid ${GID} tikiwiki @@ -57,14 +60,14 @@ RUN git clone -b ${BRANCH} https://gitlab.com/tikiwiki/tiki.git . RUN bash setup.sh -n composer +ADD entrypoint.sh /entrypoint.sh + USER root RUN mkdir -p files/forums && chmod -R 777 files/forums ADD start.sh /start.sh -ADD entrypoint.sh /entrypoint.sh - VOLUME ["/uploads"] ENTRYPOINT [ "/bin/sh", "/entrypoint.sh" ]