firefly-iii/Dockerfile

25 lines
704 B
Docker
Raw Normal View History

2019-08-20 21:18:37 -05:00
FROM jc5x/firefly-iii-base-image:latest
2019-10-08 22:46:21 -05:00
# See also: https://github.com/JC5/firefly-iii-base-image
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"
2016-10-26 08:01:55 -05:00
2018-12-26 23:04:49 -06:00
# Create volumes
VOLUME $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload
2018-08-18 07:08:28 -05:00
2018-12-26 23:04:49 -06:00
# Copy in Firefly III source
WORKDIR $FIREFLY_PATH
ADD . $FIREFLY_PATH
2018-08-18 07:08:28 -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
2018-08-14 14:21:03 -05:00
# Expose port 80
EXPOSE 80
2018-08-14 14:21:03 -05:00
# Run entrypoint thing
2018-08-20 10:31:39 -05:00
ENTRYPOINT [".deploy/docker/entrypoint.sh"]