Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.venv
.git
__pycache__
*.pyc
.ruff_cache
.mypy_cache
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.14-slim AS builder
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
COPY pyproject.toml uv.lock /app
RUN uv sync --no-install-project --frozen
COPY . /app
RUN uv sync --no-editable --frozen

FROM python:3.14-slim
WORKDIR /app
COPY --from=builder /app/.venv /app/.venv
ENV PATH="/app/.venv/bin:$PATH"
ENTRYPOINT ["python", "-m", "graphspy", "-i", "0.0.0.0", "-p", "8080"]
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
graphspy:
build: .
ports:
- 8080:8080
volumes:
- ~/.gspy/databases:/root/.gspy/databases
# Overwrite default entrypoint if needed
# entrypoint: "python -m graphspy -i 0.0.0.0 -p 8080"