From 858946a7ea92d03281e9cfc50541a4c0603e5a48 Mon Sep 17 00:00:00 2001 From: erexer <13180883+erexer@users.noreply.github.com> Date: Tue, 24 Sep 2024 08:02:55 -0700 Subject: [PATCH 1/3] add dockerfile --- Dockerfile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..46057b5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,36 @@ +# Stage 1: Build Stage +FROM quay.io/jupyter/minimal-notebook as builder + +USER root + +RUN apt-get update + +# Set up GDAL so users on ARM64 architectures can build the Fiona wheels +# ENV CPLUS_INCLUDE_PATH=/usr/include/gdal +# ENV C_INCLUDE_PATH=/usr/include/gdal +# RUN apt-get install -y \ +# build-essential \ +# gdal-bin \ +# libgdal-dev \ +# && apt-get clean \ +# && rm -rf /var/lib/apt/lists/* + +# Install cerf +RUN pip install --upgrade pip +RUN pip install cerf + +# Stage 2: Final Stage +FROM quay.io/jupyter/minimal-notebook + +USER root + +# Install graphviz +RUN apt-get update +# RUN apt-get install -y graphviz + +# Copy python packages installed/built from the builder stage +COPY --from=builder /opt/conda/lib/python3.11/site-packages /opt/conda/lib/python3.11/site-packages + +# To test this container locally, run: +# docker build -t cerf . +# docker run --rm -p 8888:8888 cerf \ No newline at end of file From 6d93570999a1a24046521b73c3771425d4a80532 Mon Sep 17 00:00:00 2001 From: erexer <13180883+erexer@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:49:38 -0700 Subject: [PATCH 2/3] update dockerfile --- Dockerfile | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 46057b5..e5a23c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,16 +5,6 @@ USER root RUN apt-get update -# Set up GDAL so users on ARM64 architectures can build the Fiona wheels -# ENV CPLUS_INCLUDE_PATH=/usr/include/gdal -# ENV C_INCLUDE_PATH=/usr/include/gdal -# RUN apt-get install -y \ -# build-essential \ -# gdal-bin \ -# libgdal-dev \ -# && apt-get clean \ -# && rm -rf /var/lib/apt/lists/* - # Install cerf RUN pip install --upgrade pip RUN pip install cerf @@ -24,13 +14,11 @@ FROM quay.io/jupyter/minimal-notebook USER root -# Install graphviz RUN apt-get update -# RUN apt-get install -y graphviz # Copy python packages installed/built from the builder stage COPY --from=builder /opt/conda/lib/python3.11/site-packages /opt/conda/lib/python3.11/site-packages # To test this container locally, run: -# docker build -t cerf . -# docker run --rm -p 8888:8888 cerf \ No newline at end of file +# docker build -t im3sfa/cerf-msdlive . +# docker run --rm -p 8888:8888 im3sfa/cerf-msdlive \ No newline at end of file From 8f5a8f29ab7259bb763cf1639e9601231213ad3d Mon Sep 17 00:00:00 2001 From: erexer <13180883+erexer@users.noreply.github.com> Date: Fri, 24 Jan 2025 08:58:45 -0800 Subject: [PATCH 3/3] switch to MSD-LIVE base jupyter notebook image --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e5a23c3..fd62b3c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build Stage -FROM quay.io/jupyter/minimal-notebook as builder +FROM ghcr.io/msd-live/jupyter/python-notebook:latest as builder USER root @@ -10,7 +10,7 @@ RUN pip install --upgrade pip RUN pip install cerf # Stage 2: Final Stage -FROM quay.io/jupyter/minimal-notebook +FROM ghcr.io/msd-live/jupyter/python-notebook:latest USER root