forked from NOAA-ORR-ERD/PyGnome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
30 lines (20 loc) · 1.04 KB
/
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
ARG PYTHON_VER
FROM registry.orr.noaa.gov/erd/centos-conda/miniforge-python$PYTHON_VER
RUN yum install -y wget gcc make bzip2 gcc-c++ ca-certificates \
libglib2.0-0 libxext6 libsm6 libxrender1 \
git mercurial subversion tar
COPY ./ /pygnome/
RUN cd pygnome && conda install python=$PYTHON_VER \
--file conda_requirements.txt \
--file conda_requirements_build.txt \
--file oil_database/adios_db/conda_requirements.txt
# this was pinning things down too much for the webapi step
# RUN cd pygnome && conda install -y --file deploy_requirements.txt
RUN conda list
# adios_db requirements should already be there from the deploy_requirements file
# RUN cd pygnome/oil_database/adios_db && conda install --file conda_requirements.txt
RUN cd pygnome/py_gnome && python setup.py install
RUN cd pygnome/oil_database/adios_db && python -m pip install ./
# to check if they got installed properly
RUN python -c "import adios_db"
RUN python -c "import gnome"