Improve docker support

- Add docker-compose file
- Add environment variable to initialize the database
- Add custom entrypoint that generates the .env file based on the environment variables
- Update Dockerfile (gettext-base package)
This commit is contained in:
Christian Musa
2017-02-11 00:33:20 -03:00
parent 3914796e4e
commit 0cbed2d5d2
4 changed files with 107 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ RUN apt-get update -y && \
libxml2-dev \
libsqlite3-dev \
libbz2-dev \
gettext-base \
locales && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
@@ -44,3 +45,5 @@ WORKDIR /var/www/firefly-iii
RUN composer install --no-scripts --no-dev
USER root
ENTRYPOINT ["/var/www/firefly-iii/docker/entrypoint.sh"]