Correcting how docker is built to fix missing build context. RE:#1952

This commit is contained in:
James Douglass 2025-05-27 14:01:17 -07:00
parent e520c986d6
commit d379a2d2d0
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ jobs:
fi
#--build-arg="INVEST_REPO=${INVEST_REPO}" \
#--build-arg="INVEST_VERSION=${INVEST_VERSION}" \
cd docker && docker build \
docker build -f docker/Dockerfile . \
-t ghcr.io/${{ github.repository_owner }}/${{ env.CONTAINER_NAME }}:latest \
-t ghcr.io/${{ github.repository_owner }}/${{ env.CONTAINER_NAME }}:${{ github.sha }} \
-t ghcr.io/${{ github.repository_owner }}/${{ env.CONTAINER_NAME }}:${SANITIZED_REF} \

View File

@ -3,7 +3,7 @@
# 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
ADD . /invest
RUN cd /invest && python3 -m build
# Create the container for distribution that has runtime dependencies.