Pipelinen parannuksia building blockeilla

This commit is contained in:
Jaakko Vanhala
2026-04-12 18:48:14 +03:00
parent c1a5f8aff5
commit b2ee8b9031
175 changed files with 13311 additions and 237 deletions

13
zipit/todo_new/Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM python:3.12-slim
COPY pyproject.toml /app/
RUN uv sync -y
COPY models.py schemas.py main.py test_main.py /app/
ENV UV_CACHE_DIR=/tmp/uv-cache
USER appuser
EXPOSE 8000
CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]