Update Dockerfile

This commit is contained in:
Alexandre
2023-03-04 06:33:10 +01:00
committed by GitHub
parent 73928849d4
commit 257c6231ba

View File

@@ -34,15 +34,9 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
# grep -rl "/var/www/html" /etc/ | xargs sed -i 's|/var/www/html|/data/firefly|g'
ARG BUILD_UPSTREAM="6.0.0"
RUN \
#################
# Fix for 5.7.5 #
#################
if [ "$BUILD_UPSTREAM" = "6.0.0" ] ; then \
sed -i "s|, \$transaction\[\x27amount\x27\] ?? \x270\x27);|, (string)(\$transaction\[\x27amount\x27\] ?? \x270\x27));|g" /var/www/html/app/Helpers/Collector/GroupCollector.php; else echo "not 5.7.5"; fi
RUN \
# Change upload folder to "ha_upload" since the default one is binded to a volume (see base image)
sed -i "s/'root' => storage_path('upload'),/'root' => storage_path('ha_upload'),/g" /var/www/html/config/fileystems.php
sed -i "s/'root' => storage_path('upload'),/'root' => storage_path('ha_upload'),/g" /var/www/html/config/filesystems.php
##################
# 3 Install apps #