Added locale-gen to firefly build

pull/3/head
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

View File

@ -5,6 +5,8 @@ services:
build:
context: '.'
dockerfile: './Dockerfile'
args:
- 'LOCALE=$DEFAULT_LOCALE'
image: 'firefly-iii-cron:latest'
restart: 'always'