-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (29 loc) · 1.14 KB
/
Dockerfile
File metadata and controls
39 lines (29 loc) · 1.14 KB
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
36
37
38
39
FROM pcic/geospatial-python:3.8.4
LABEL Maintainer="https://github.com/pacificclimate/sandpiper" \
Description="sandpiper WPS" \
Vendor="pacificclimate" \
Version="1.8.0"
ENV PIP_INDEX_URL="https://pypi.pacificclimate.org/simple/"
ENV THREDDS_URL_ROOT="https://marble-dev01.pcic.uvic.ca/twitcher/ows/proxy/thredds/dodsC/datasets"
# Update system
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y \
libxml2-dev \
libxslt-dev \
wget
WORKDIR /tmp
ENV POETRY_HOME="/opt/poetry"
ENV PATH="$POETRY_HOME/bin:$PATH"
RUN apt-get update && \
apt-get install -y --no-install-recommends python3-pip curl && \
curl -sSL https://install.python-poetry.org | python3
COPY . .
RUN poetry config virtualenvs.in-project true && \
poetry install
# Start WPS service on port 5000 on 0.0.0.0
EXPOSE 5000
CMD ["poetry", "run","gunicorn", "--bind=0.0.0.0:5000", "--timeout", "150", "sandpiper.wsgi:application"]
# docker build -t pcic/sandpiper .
# docker run -p 5000:5000 pcic/sandpiper
# http://localhost:5000/wps?request=GetCapabilities&service=WPS
# http://localhost:5000/wps?request=DescribeProcess&service=WPS&identifier=all&version=1.0.0