Initial commit — LLDP network mapper

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
dstephenson
2026-04-21 20:56:13 +00:00
commit 40d4679a59
17 changed files with 2691 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
FROM python:3.12-slim
# Install graphviz for PNG rendering
RUN apt-get update && apt-get install -y --no-install-recommends \
graphviz \
openssh-client \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy and install requirements
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all Python modules
COPY config.py db.py parser.py ssh_client.py scanner.py exports.py app.py nocodb_client.py ./
# Copy frontend template
COPY index.html ./templates/index.html
# Create static and data dirs
RUN mkdir -p ./static /data
# Data volume for SQLite + exports
VOLUME ["/data"]
EXPOSE 5000
CMD ["python", "app.py"]