Update [docker]: move the locales compile process to the Dockerfile

This commit is contained in:
Kirill Samoylenkov 2025-11-01 17:08:25 +05:00
parent 83e91c58c4
commit 0ded0fa64e
3 changed files with 4 additions and 1 deletions

View file

@ -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 []

View file

@ -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