Compare commits

..

No commits in common. "testing" and "main" have entirely different histories.

2 changed files with 12 additions and 24 deletions

View File

@ -1,36 +1,22 @@
FROM php:8.2-apache-bookworm FROM php:7.4-apache-bullseye
ARG URL=https://www.timetrex.com/direct_download/TimeTrex_Community_Edition-manual-installer.zip
ARG BASE_URL=https://www.timetrex.com/direct_download
ARG FILENAME=TimeTrex_Community_Edition-manual-installer.zip
ARG URL=${BASE_URL}/${FILENAME}
# Install PHP extensions # Install PHP extensions
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
libarchive-tools \ libarchive-tools \
libpq-dev \ libpq-dev \
zlib1g-dev \ zlib1g-dev \
libpng-dev \ libpng-dev \
libicu-dev \ libicu-dev \
libxml2-dev \ libxml2-dev \
libzip-dev \ libzip-dev \
libpspell-dev \
libc-client-dev \
libkrb5-dev \
libxslt1-dev \
libldap2-dev \
libonig-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl \ RUN docker-php-ext-install pgsql gd gettext intl soap zip bcmath
&& docker-php-ext-install pgsql pspell gd gettext imap intl soap zip ldap \
xml xsl mbstring bcmath
RUN ln -s "$(which php)" /usr/bin/php RUN ln -s "$(which php)" /usr/bin/php
# Download and place TimeTrex # Download and place TimeTrex
RUN curl -s "$URL" | bsdtar -xf- -C /var/www/html/ && \ RUN curl -s "$URL" | bsdtar -xf- -C /var/www/html/ && \
bash -c 'shopt -s dotglob && \
cp -r /var/www/html/TimeTrex_*/* /var/www/html/' && \
shopt -s dotglob && \
cp -r /var/www/html/TimeTrex_*/* /var/www/html/ && \ cp -r /var/www/html/TimeTrex_*/* /var/www/html/ && \
rm -rf /var/www/html/TimeTrex_* && \ rm -rf /var/www/html/TimeTrex_* && \
cp timetrex.ini.php-example_linux timetrex.ini.php cp timetrex.ini.php-example_linux timetrex.ini.php

View File

@ -1,3 +1,5 @@
version: '3'
services: services:
timetrex: timetrex:
build: . build: .