kimai2/apache-ubuntu-18.04/Dockerfile
2019-07-08 13:06:34 -05:00

18 lines
721 B
Docker

FROM webdevops/php-apache:ubuntu-18.04
MAINTAINER Belman Kraul <bkraul@belmankraul.com>
ENV \
WEB_DOCUMENT_ROOT="/app/public"
RUN git clone https://github.com/kevinpapst/kimai2.git /app && \
sed "s/prod/dev/g" /app/.env.dist > /app/.env && \
chown -R ${APPLICATION_UID}:${APPLICATION_GID} /app && \
su -c '/usr/local/bin/composer install --working-dir=/app --optimize-autoloader' -l application && \
su -c '/usr/local/bin/composer require zendframework/zend-ldap --working-dir=/app' -l application && \
rm /app/.env && \
touch /app/.env && \
chown ${APPLICATION_UID}:${APPLICATION_GID} /app/.env
COPY ./50-kimai-init.sh /opt/docker/provision/entrypoint.d/50-kimai-init.sh
WORKDIR /app