Update: Dockerfile

This commit is contained in:
Siroco 2023-10-27 15:06:20 +00:00
parent 809f05e45e
commit a928c99804
10 changed files with 19 additions and 11 deletions

View File

@ -4,7 +4,6 @@ ARG BRANCH=25.x
ARG UID=1000
ARG GID=1000
ARG PHP_VERSION=7.4
ARG PHP_VERSION=
RUN apt update && apt dist-upgrade -y
@ -20,18 +19,17 @@ RUN apt install -y \
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
RUN apt remove -y php-cli && \
apt install -y php${PHP_VERSION}-cli
RUN apt install -y \
php${PHP_VERSION}-dom php${PHP_VERSION}-gd php${PHP_VERSION}-curl php${PHP_VERSION}-intl php${PHP_VERSION}-zip php${PHP_VERSION}-bcmath \
sqlite3 php${PHP_VERSION}-sqlite3 build-essential elinks unzip xlsx2csv psutils \
php${PHP_VERSION}-memcached php${PHP_VERSION}-memcached php${PHP_VERSION}-opcache php${PHP_VERSION}-intl php${PHP_VERSION}-gd \
php${PHP_VERSION}-mysql php${PHP_VERSION}-ldap php${PHP_VERSION}-dom php${PHP_VERSION}-zip php${PHP_VERSION}-ldap \
php${PHP_VERSION}-fpm php${PHP_VERSION}-mysql php${PHP_VERSION}-mbstring php${PHP_VERSION}-bz2 \
php-dompdf \
RUN apt update -y && apt install -y \
php${PHP_VERSION}-gd php${PHP_VERSION}-curl php${PHP_VERSION}-intl php${PHP_VERSION}-zip php${PHP_VERSION}-bcmath \
sqlite3 php${PHP_VERSION}-sqlite3 build-essential elinks unzip xlsx2csv psutils
RUN apt install -y php${PHP_VERSION}-memcached php${PHP_VERSION}-memcached php${PHP_VERSION}-intl php${PHP_VERSION}-gd \
php${PHP_VERSION}-mysql php${PHP_VERSION}-ldap php${PHP_VERSION}-zip \
php${PHP_VERSION}-fpm php${PHP_VERSION}-mysql php${PHP_VERSION}-mbstring php${PHP_VERSION}-bz2 php-dompdf php${PHP_VERSION}-xml php${PHP_VERSION}-redis \
composer curl
#RUN update-alternatives --install /usr/bin/php php /usr/bin/php${PHP_VERSION} 99 --force
RUN ln -s /usr/bin/python3 /usr/bin/python
@ -56,11 +54,20 @@ RUN adduser www-data tikiwiki
WORKDIR /var/www/html/tiki
RUN update-alternatives --install /usr/bin/php php /usr/bin/php${PHP_VERSION} 99 --force
RUN update-alternatives --set php /usr/bin/php${PHP_VERSION}
USER tikiwiki
RUN git clone -b ${BRANCH} https://gitlab.com/tikiwiki/tiki.git .
RUN bash setup.sh -n composer
# Solucion temporal ( para 26.x )
COPY packages/* vendor_custom/
RUN cd vendor_custom && \
find . -name "*.zip" | while read filename; do unzip $filename; done;
RUN cd vendor_custom && rm -rf *.zip
RUN sh setup.sh -n composer
ADD entrypoint.sh /entrypoint.sh

View File

@ -38,6 +38,7 @@ update() {
sudo -u tikiwiki php console.php database:update
sudo -u tikiwiki php console.php package:update
sudo -u tikiwiki php console.php installer:lock
install_packages
}
[ -s ./db/local.php ] && update || install

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.