33 lines
1.0 KiB
Docker
33 lines
1.0 KiB
Docker
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
|