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