Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://doi.org/10.5281/zenodo.15858845
22 September 2025, 19:30:56 UTC
  • Code
  • Branches (0)
  • Releases (8)
  • Visits
    • Branches
    • Releases
      • 8
      • 8
      • 7
      • 6
      • 5
      • 4
      • 3
      • 2
      • 1
    • 731c686
    • /
    • c2g-dev-city2graph-54ca5da
    • /
    • Dockerfile
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:30667508793805c3f48156a3e5b7a3192abc9798
    origin badgedirectory badge
    swh:1:dir:1a5e660a570d75de640e747e2837daeaa218d31f
    origin badgesnapshot badge
    swh:1:snp:5003547be900b444c1ef0046c77da9881998af06
    origin badgerelease badge
    swh:1:rel:44beadf1a6bf7d346bd2e92614ae2a2414ff472b

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Dockerfile
    FROM jupyter/datascience-notebook:latest
    
    USER root
    
    # Install uv, the new fast Python package installer
    COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
    
    WORKDIR /home/jovyan/city2graph
    
    # Install dependencies using uv sync, leveraging Docker layer caching.
    # This installs dependencies from pyproject.toml into a separate layer
    # before the application code is copied, improving build times.
    RUN --mount=type=cache,target=/root/.cache/uv \
        --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
        uv sync --system --extra cpu --group dev --no-install-project
    
    # Copy the rest of the application code
    COPY . .
    
    # Install the project in editable mode. Dependencies are already installed, so this is fast.
    RUN --mount=type=cache,target=/root/.cache/uv \
        uv sync --system --extra cpu --group dev
    
    # Ensure the jovyan user owns the files
    RUN chown -R jovyan:users /home/jovyan/city2graph
    
    # Switch back to the non-root user
    USER jovyan
    
    EXPOSE 8888
    

    back to top

    Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API