urfu-daddy/docker/Dockerfile

23 lines
463 B
Docker

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"
# Compile Babel locales
RUN uv run --active --script ./scripts/pybabel.py compile
# Clear entrypoint
ENTRYPOINT []