From 3e247e21822924a6dd7f0e634e1b282eaa4d7a7b Mon Sep 17 00:00:00 2001 From: serversdown Date: Mon, 11 May 2026 21:38:03 +0000 Subject: [PATCH 1/2] docker: add .dockerignore and Dockerfile for containerization. --- .dockerignore | 28 ++++++++++++++++++++++++++++ Dockerfile | 18 ++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..39f70c8 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,28 @@ +.git +.gitignore + +.venv +venv +env +__pycache__ +*.pyc +*.pyo +*.pyd +.pytest_cache +.mypy_cache +.ruff_cache + +*.db +*.db-wal +*.db-shm +*.sqlite +*.sqlite3 + +sfm/data +bridges/captures +example-events +captures +logs + +.DS_Store +Thumbs.db \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8fb05f7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM python:3.11-slim + +WORKDIR /app + +RUN apt-get update && \ + apt-get install -y --no-install-recommends curl && \ + rm -rf /var/lib/apt/lists/* + +COPY pyproject.toml requirements.txt ./ +COPY minimateplus ./minimateplus +COPY sfm ./sfm +COPY bridges ./bridges + +RUN pip install --no-cache-dir -e . + +EXPOSE 8200 + +CMD ["python", "-m", "uvicorn", "sfm.server:app", "--host", "0.0.0.0", "--port", "8200"] \ No newline at end of file -- 2.52.0 From 83d69b922029c4c6f326ba374a2490961b8a713d Mon Sep 17 00:00:00 2001 From: serversdown Date: Mon, 11 May 2026 21:40:18 +0000 Subject: [PATCH 2/2] chore(server): update inline version to 0.16.0 --- sfm/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfm/server.py b/sfm/server.py index a7b8cae..772f922 100644 --- a/sfm/server.py +++ b/sfm/server.py @@ -86,7 +86,7 @@ app = FastAPI( "Implements the minimateplus RS-232 protocol library.\n" "Proxied by terra-view at /api/sfm/*." ), - version="0.1.0", + version="0.16.0", ) # Allow requests from the waveform viewer opened as a local file (file://) -- 2.52.0