-
Notifications
You must be signed in to change notification settings - Fork 9
/
dockerfile
35 lines (26 loc) · 939 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
ARG CI_COMMIT_BRANCH
ARG PYTHON_VER
FROM registry.orr.noaa.gov/gnome/pygnome:${CI_COMMIT_BRANCH}
# Args declared before the FROM need to be redeclared, don't delete this
ARG CI_COMMIT_BRANCH
ARG PYTHON_VER
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y redis
COPY ./ /webgnomeapi/
WORKDIR /webgnomeapi/
RUN conda install -y python=$PYTHON_VER \
--file conda_requirements.txt \
--file libgoods/conda_requirements.txt \
--file /pygnome/py_gnome/conda_requirements.txt
RUN cd libgoods && python -m pip install ./
# add the environment file so the api can serve it up
RUN conda env export > webgnome_api/views/deployed_environment.yaml
RUN python -m pip install ./
RUN mkdir /config
RUN cp gnome-deploy/config/webgnomeapi/config.ini /config/config.ini
RUN ln -s /config/config.ini /webgnomeapi/config.ini
EXPOSE 9899
VOLUME /config
VOLUME /models
ENTRYPOINT ["/webgnomeapi/docker_start.sh"]