add locale installation

This commit is contained in:
Matt Marcha 2025-04-09 11:03:33 -10:00
parent 5b8742365a
commit 030e378f1c
2 changed files with 11 additions and 0 deletions

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM odoo:16.0
USER root
RUN apt update
RUN apt install -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales
USER odoo

View file

@ -1,6 +1,7 @@
services: services:
web: web:
image: "odoo:${ODOO_VERSION}" image: "odoo:${ODOO_VERSION}"
build: .
depends_on: depends_on:
- db - db
ports: ports: