feature/docker - add first docker compose & docker image files #5

Merged
geekiot merged 2 commits from feature/docker into develop 2025-10-24 00:47:26 +05:00
2 changed files with 28 additions and 0 deletions
Showing only changes of commit abf8c2c55a - Show all commits

20
docker/Dockerfile Normal file
View file

@ -0,0 +1,20 @@
FROM ghcr.io/astral-sh/uv:trixie-slim
# Settings for UV
ENV UV_COMPILE_BYTECODE=1
ENV UV_TOOL_BIN_DIR=/usr/local/bin
# Copy base project files
COPY . /urfu-daddy
# Set working dir
WORKDIR /urfu-daddy
# Run UV commands
RUN uv sync --locked --no-install-project --no-dev
# Add uv installed tools to path
ENV PATH="/urfu-daddy/.venv/bin:$PATH"
# Clear entrypoint
ENTRYPOINT []

View file

@ -0,0 +1,8 @@
services:
bot:
container_name: urfu-daddy-bot
build:
context: ..
dockerfile: ./docker/Dockerfile
command: sh -c "uv run --active --script ./scripts/pybabel.py compile && uv run ./src/main.py"
restart: always