-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
32 lines (24 loc) · 1 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
30
31
32
# vim:set ft=dockerfile:
FROM condaforge/mambaforge
ENV PIP_ROOT_USER_ACTION=ignore
LABEL org.opencontainers.image.authors="https://github.com/Ouranosinc/raven"
LABEL Description="Raven WPS" Vendor="Birdhouse" Version="0.18.2"
# Set the working directory to /code
WORKDIR /code
# Create conda environment
COPY environment.yml .
RUN mamba env create -n raven -f environment.yml && mamba install -n raven gunicorn && mamba clean --all --yes
# Add the raven conda environment to the path
ENV PATH=/opt/conda/envs/raven/bin:$PATH
# Copy raven source code
COPY . /code
# Install raven
RUN pip install . --no-deps
# Start WPS service on port 9099 on 0.0.0.0
EXPOSE 9099
CMD ["gunicorn", "--bind=0.0.0.0:9099", "raven.wsgi:application"]
#CMD ["exec raven-wps start -b '0.0.0.0' -c etc/demo.cfg"]
# docker build -t pavics/raven .
# docker run -p 9099:9099 pavics/raven
# http://localhost:9099/wps?request=GetCapabilities&service=WPS
# http://localhost:9099/wps?request=DescribeProcess&service=WPS&identifier=all&version=1.0.0