Added locale-gen to firefly build

This commit is contained in:
Jef Roosens 2021-01-11 10:01:03 +01:00
parent e8e3f0e46e
commit ed1c712b79
2 changed files with 8 additions and 2 deletions

View file

@ -1,9 +1,13 @@
FROM jc5x/firefly-iii:latest
# Install cron & crontab
ARG LOCALE
# Install cron; setup locales
RUN apt update && \
apt install --no-install-recommends -y cron && \
echo "0 */4 * * * /usr/bin/php /var/www/html/artisan firefly-iii:cron" | crontab
echo "0 */4 * * * /usr/bin/php /var/www/html/artisan firefly-iii:cron" | crontab && \
echo "$LOCALE.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen
# Run cron on startup
ENTRYPOINT cron && /usr/local/bin/entrypoint.sh