From 173326d4adfd36e6794d49d2cea6dde7493eaa6b Mon Sep 17 00:00:00 2001 From: Kasper Date: Fri, 14 Nov 2025 14:06:39 +0100 Subject: [PATCH] build: add Dockerfile ref: N25B-280 --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..14ab565 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# Debian based image +FROM ghcr.io/astral-sh/uv:0.9.8-trixie-slim + +WORKDIR /app + +ENV VIRTUAL_ENV=/app/.venv +ENV PATH="$VIRTUAL_ENV/bin:$PATH" + +RUN apt-get update && apt-get install -y gcc=4:14.2.0-1 portaudio19-dev && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* + +COPY pyproject.toml uv.lock .python-version ./ + +RUN uv sync + +COPY . . + +EXPOSE 8000 + +ENV PYTHONPATH=src + +CMD [ "fastapi", "run", "src/control_backend/main.py" ]