Compile translations when building the admin container

master
Pierre Jaury 8 years ago
parent acf4addae0
commit 984b605d05

@ -10,5 +10,6 @@ COPY requirements.txt .
COPY start.sh /start.sh COPY start.sh /start.sh
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
RUN pybabel compile -d freeposte/translations
CMD ["/start.sh"] CMD ["/start.sh"]

@ -1,3 +1,3 @@
[python: freeposte/**.py] [python: **.py]
[jinja2: freeposte/**/templates/**.html] [jinja2: **/templates/**.html]
extensions=jinja2.ext.autoescape,jinja2.ext.with_ extensions=jinja2.ext.autoescape,jinja2.ext.with_

Loading…
Cancel
Save