Clarifying files needed for wheel build. RE:#1952

This commit is contained in:
James Douglass 2025-05-27 14:12:57 -07:00
parent faf8b06b63
commit fdf0afdab0
1 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,11 @@
# Build the InVEST wheel in a separate container stage
FROM debian:12.11 AS build
RUN apt update && apt install -y python3 python3-dev python3-pip python3-build build-essential git python3.11-venv libgdal-dev
ADD . /invest
# only copy in the files needed for building the wheel
ADD src /invest/src
ADD pyproject.toml /invest/pyproject.toml
ADD setup.py /invest/setup.py
RUN cd /invest && python3 -m build
# Create the container for distribution that has runtime dependencies.