Add entrypoint for Container

- Adds config.php if not available
 - Runs console.php for installation
This commit is contained in:
Markus Opolka
2018-07-23 14:50:29 +02:00
parent f41aff2b87
commit 43ece8e1de
7 changed files with 102 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ RUN apt-get update && \
libkrb5-dev \
libpng-dev \
libpq-dev \
netcat \
&& apt-get autoclean; apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
@@ -38,3 +39,7 @@ ADD "https://github.com/LimeSurvey/LimeSurvey/archive/${version}.tar.gz" /tmp
RUN tar xzvf "/tmp/${version}.tar.gz" --strip-components=1 -C /var/www/html/ && \
rm "/tmp/${version}.tar.gz" && \
chown -R www-data:www-data /var/www/html
COPY entrypoint.sh entrypoint.sh
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
CMD ["php-fpm"]