generated from geekiot/python-template
Change [scripts]: The logic of the scripts is completely separated from the main code
This commit is contained in:
parent
0ded0fa64e
commit
1c5edbaa60
3 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ RUN uv sync --locked --no-install-project --no-dev
|
||||||
ENV PATH="/urfu-daddy/.venv/bin:$PATH"
|
ENV PATH="/urfu-daddy/.venv/bin:$PATH"
|
||||||
|
|
||||||
# Compile Babel locales
|
# Compile Babel locales
|
||||||
RUN uv run --active --script ./src/scripts/pybabel.py compile
|
RUN uv run --active --script ./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 --no-dev ./src/main.py"
|
command: ["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