Initial commit

This commit is contained in:
2026-01-30 13:17:42 +02:00
commit 580d27028b
19 changed files with 335 additions and 0 deletions

24
Dockerfile.test Normal file
View File

@@ -0,0 +1,24 @@
FROM python:3.14-slim AS builder
WORKDIR /app
ENV UV_COMPILE_BYTECODE=1
COPY pyproject.toml uv.lock ./
RUN pip install --no-cache-dir uv \
&& uv sync --frozen --no-install-project --group dev
COPY uv_app/ ./uv_app/
COPY tests/ ./tests/
FROM python:3.14-slim
WORKDIR /app
COPY --from=builder /app/.venv /app/.venv
COPY --from=builder /app/uv_app ./uv_app
COPY --from=builder /app/tests ./tests
RUN adduser --disabled-password --gecos '' appuser && chown -R appuser /app
USER appuser
CMD ["/app/.venv/bin/pytest", "-q"]