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"]