2019-07-08 18:06:34 +00:00
|
|
|
FROM webdevops/php-apache:ubuntu-18.04
|
2019-07-08 16:20:18 +00:00
|
|
|
MAINTAINER Belman Kraul <bkraul@belmankraul.com>
|
|
|
|
|
|
|
|
ENV \
|
2019-07-14 17:37:57 +00:00
|
|
|
WEB_DOCUMENT_ROOT="/app/public" \
|
|
|
|
APP_LOG=0
|
2019-07-08 16:20:18 +00:00
|
|
|
|
|
|
|
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 && \
|
2019-07-08 18:06:34 +00:00
|
|
|
su -c '/usr/local/bin/composer require zendframework/zend-ldap --working-dir=/app' -l application && \
|
2019-07-08 16:20:18 +00:00
|
|
|
rm /app/.env && \
|
|
|
|
touch /app/.env && \
|
2019-07-14 17:37:57 +00:00
|
|
|
touch /app/var/log/prod.log && \
|
|
|
|
touch /app/var/log/dev.log && \
|
2019-07-08 16:20:18 +00:00
|
|
|
chown ${APPLICATION_UID}:${APPLICATION_GID} /app/.env
|
2019-07-08 18:06:34 +00:00
|
|
|
|
2019-07-08 16:20:18 +00:00
|
|
|
COPY ./50-kimai-init.sh /opt/docker/provision/entrypoint.d/50-kimai-init.sh
|
2019-07-14 17:37:57 +00:00
|
|
|
COPY ./supervisor/kimai-log.sh /opt/docker/bin/service.d/kimai-log.sh
|
|
|
|
COPY ./supervisor/kimai-log.conf /opt/docker/etc/supervisor.d/kimai-log.conf
|
2019-07-08 16:20:18 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|