diff --git a/Dockerfile b/Dockerfile index af55af5..4c31fff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,11 +17,13 @@ RUN apt-get update && \ # docker-compose; storage in the DB is always UTC regardless. ENV TZ=America/New_York +# The product and its maintenance scripts (the backfills run in this +# container). The bench and lab tools -- bridges/, scratch/, seismo_lab.py -- +# stay out of the image (ADR 0003; SFM imports nothing from them). COPY pyproject.toml requirements.txt ./ COPY minimateplus ./minimateplus COPY micromate ./micromate COPY sfm ./sfm -COPY bridges ./bridges COPY scripts ./scripts RUN pip install --no-cache-dir -e . diff --git a/pyproject.toml b/pyproject.toml index 08ca4fc..d5264b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ dependencies = [ test = ["pytest>=7", "httpx>=0.24"] [tool.setuptools.packages.find] -# Auto-discovers minimateplus/, micromate/, sfm/, bridges/ as packages +# The product's packages. bridges/ (bench tools) is not one of them: it runs +# from a checkout and stays out of the image (ADR 0003). where = ["."] -include = ["minimateplus*", "micromate*", "sfm*", "bridges*"] +include = ["minimateplus*", "micromate*", "sfm*"]