This commit is contained in:
Kris Lamoureux 2025-06-17 21:56:23 -04:00
parent 2b8c2cc2c9
commit 8913392f61
2 changed files with 24 additions and 12 deletions

View File

@ -1,22 +1,36 @@
FROM php:7.4-apache-bullseye
ARG URL=https://www.timetrex.com/direct_download/TimeTrex_Community_Edition-manual-installer.zip
FROM php:8.2-apache-bookworm
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
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libarchive-tools \
libpq-dev \
zlib1g-dev \
libpng-dev \
libicu-dev \
libxml2-dev \
libzip-dev \
libarchive-tools \
libpq-dev \
zlib1g-dev \
libpng-dev \
libicu-dev \
libxml2-dev \
libzip-dev \
libpspell-dev \
libc-client-dev \
libkrb5-dev \
libxslt1-dev \
libldap2-dev \
libonig-dev \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install pgsql gd gettext intl soap zip bcmath
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& 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
# Download and place TimeTrex
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/ && \
rm -rf /var/www/html/TimeTrex_* && \
cp timetrex.ini.php-example_linux timetrex.ini.php

View File

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