Correcting how docker is built to fix missing build context. RE:#1952
This commit is contained in:
parent
e520c986d6
commit
d379a2d2d0
|
@ -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} \
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue