generated from geekiot/python-template
Update [docker]: move the locales compile process to the Dockerfile
This commit is contained in:
parent
83e91c58c4
commit
0ded0fa64e
3 changed files with 4 additions and 1 deletions
|
|
@ -16,5 +16,8 @@ RUN uv sync --locked --no-install-project --no-dev
|
||||||
# Add uv installed tools to path
|
# Add uv installed tools to path
|
||||||
ENV PATH="/urfu-daddy/.venv/bin:$PATH"
|
ENV PATH="/urfu-daddy/.venv/bin:$PATH"
|
||||||
|
|
||||||
|
# Compile Babel locales
|
||||||
|
RUN uv run --active --script ./src/scripts/pybabel.py compile
|
||||||
|
|
||||||
# Clear entrypoint
|
# Clear entrypoint
|
||||||
ENTRYPOINT []
|
ENTRYPOINT []
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: ..
|
||||||
dockerfile: ./docker/Dockerfile
|
dockerfile: ./docker/Dockerfile
|
||||||
command: sh -c "uv run --active --script ./scripts/pybabel.py compile && uv run --no-dev ./src/main.py"
|
command: sh -c "uv run --no-dev ./src/main.py"
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue