2019-08-18 01:10:30 -05:00
|
|
|
FROM jc5x/firefly-iii-base-image:latest
|
2019-02-02 08:30:23 -06:00
|
|
|
ENV FIREFLY_PATH=/var/www/firefly-iii COMPOSER_ALLOW_SUPERUSER=1
|
2019-08-10 10:21:58 -05:00
|
|
|
LABEL version="1.5" maintainer="thegrumpydictator@gmail.com"
|
2019-02-02 08:30:23 -06:00
|
|
|
|
|
|
|
# Create volumes
|
|
|
|
VOLUME $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload
|
|
|
|
|
|
|
|
# Copy in Firefly III source
|
|
|
|
WORKDIR $FIREFLY_PATH
|
|
|
|
ADD . $FIREFLY_PATH
|
|
|
|
|
2019-03-24 04:59:17 -05:00
|
|
|
# Ensure correct app directory permission, then `composer install`
|
|
|
|
RUN chown -R www-data:www-data /var/www && \
|
|
|
|
chmod -R 775 $FIREFLY_PATH/storage && \
|
|
|
|
composer install --prefer-dist --no-dev --no-scripts --no-suggest
|
|
|
|
|
2019-02-02 08:30:23 -06:00
|
|
|
# Expose port 80
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
# Run entrypoint thing
|
|
|
|
ENTRYPOINT [".deploy/docker/entrypoint.sh"]
|