Trying to build the container from current state.

RE:#1952
This commit is contained in:
James Douglass 2025-05-27 13:35:27 -07:00
parent 1b9e71b79b
commit 589f68ad37
2 changed files with 4 additions and 9 deletions

View File

@ -66,9 +66,9 @@ jobs:
INVEST_REPO="${{ github.repository }}"
INVEST_VERSION="${{ github.sha }}"
fi
#--build-arg="INVEST_REPO=${INVEST_REPO}" \
#--build-arg="INVEST_VERSION=${INVEST_VERSION}" \
cd docker && docker build \
--build-arg="INVEST_REPO=${INVEST_REPO}" \
--build-arg="INVEST_VERSION=${INVEST_VERSION}" \
-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

@ -2,14 +2,9 @@
# Build the InVEST wheel in a separate container stage
FROM debian:12.11 AS build
ARG INVEST_VERSION="main"
ARG INVEST_REPO="natcap/invest"
RUN apt update && apt install -y python3 python3-dev python3-pip python3-build build-essential git python3.11-venv libgdal-dev
RUN cd / && \
git clone https://github.com/${INVEST_REPO}.git && \
cd $(basename ${INVEST_REPO}) && \
git checkout ${INVEST_VERSION} && \
python3 -m build
ADD ..
RUN python3 -m build
# Create the container for distribution that has runtime dependencies.
FROM mambaorg/micromamba:2.1.1-debian12-slim