Change [scripts]: The logic of the scripts is completely separated from the main code

This commit is contained in:
Kirill Samoylenkov 2025-11-03 02:00:53 +05:00
parent 0ded0fa64e
commit 1c5edbaa60
3 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ RUN uv sync --locked --no-install-project --no-dev
ENV PATH="/urfu-daddy/.venv/bin:$PATH"
# Compile Babel locales
RUN uv run --active --script ./src/scripts/pybabel.py compile
RUN uv run --active --script ./scripts/pybabel.py compile
# Clear entrypoint
ENTRYPOINT []

View file

@ -4,7 +4,7 @@ services:
build:
context: ..
dockerfile: ./docker/Dockerfile
command: sh -c "uv run --no-dev ./src/main.py"
command: ["uv", "run", "--no-dev", "./src/main.py"]
restart: always
depends_on:
- database