Compile translations when building the admin container
This commit is contained in:
@@ -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_
|
||||||
|
|||||||
Reference in New Issue
Block a user