From fd1f957075ecfdd9d506d230710dc8f48d44619b Mon Sep 17 00:00:00 2001 From: WilliamDJR Date: Sat, 27 Dec 2025 13:12:14 +1000 Subject: [PATCH] Added dockerfile.training --- Dockerfile.training | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile.training diff --git a/Dockerfile.training b/Dockerfile.training new file mode 100644 index 0000000..877809a --- /dev/null +++ b/Dockerfile.training @@ -0,0 +1,16 @@ +FROM python:3.12-slim + +# Install uv. +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ + +# Copy the application into the container. +COPY . /app + +# Install the application dependencies. +WORKDIR /app +RUN uv sync --frozen --no-cache + +EXPOSE 8000 + +# Run the application. +CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--port", "8000", "--host", "0.0.0.0"]