This commit is contained in:
Nat 2024-06-26 17:33:37 -07:00
commit 91aed7277e
Signed by: nat
GPG Key ID: B53AB05285D710D6
2 changed files with 32 additions and 0 deletions

32
Dockerfile Normal file
View File

@ -0,0 +1,32 @@
FROM ubuntu:22.04
RUN cd /root
# installing tzdata, which is a dependency of one of the following packages,
# needs a little configuration to be run non-interactively. This manually
# sets the timezone data it expects
RUN ln -fs /usr/share/zoneinfo/America/Vancouver /etc/localtime
# Setting DEBIAN_FRONTEND here prevents undesired interactive prompts when
# installing certain packages (namely tzdata)
RUN apt-get update && apt-get install -y \
python3 python3-dev python3-pip python3-venv \
libnetcdf-dev libproj-dev \
libgdal-dev \
python3-gdal \
libxml2-dev libxslt1-dev
# Create and activate python virtual environment
RUN python3 -m venv /root/venv
ENV PATH="/root/venv/bin/activate:$PATH"
# Install pip dependencies
RUN pip install "numpy==1.26.4"
RUN export CPLUS_INCLUDE_PATH=/usr/include/gdal
RUN export CPLUS_INCLUDE_PATH=/usr/include/gdal
RUN pip install gdal==`gdal-config --version`
RUN pip install --extra-index https://pypi.airfire.org/simple fccsmap==4.1.2
COPY ./better_fccs_canada.nc /root/better_fccs_canada.nc

BIN
better_fccs_canada.nc Normal file

Binary file not shown.