Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
8913392f61 |
34
Dockerfile
34
Dockerfile
@ -1,22 +1,36 @@
|
|||||||
FROM php:7.4-apache-bullseye
|
FROM php:8.2-apache-bookworm
|
||||||
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-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
|
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
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
version: '3'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
timetrex:
|
timetrex:
|
||||||
build: .
|
build: .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user