-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
36 lines (27 loc) · 906 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Stage 1: Build Stage
FROM ghcr.io/msd-live/jupyter/python-notebook:latest 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 naturf
RUN pip install --upgrade pip
RUN pip install naturf
# Stage 2: Final Stage
FROM ghcr.io/msd-live/jupyter/python-notebook:latest
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 naturf .
# docker run --rm -p 8888:8888 naturf