Added locale-gen to firefly build
parent
e8e3f0e46e
commit
ed1c712b79
|
@ -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
|
||||
|
|
|
@ -5,6 +5,8 @@ services:
|
|||
build:
|
||||
context: '.'
|
||||
dockerfile: './Dockerfile'
|
||||
args:
|
||||
- 'LOCALE=$DEFAULT_LOCALE'
|
||||
image: 'firefly-iii-cron:latest'
|
||||
restart: 'always'
|
||||
|
||||
|
|
Reference in New Issue