-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (17 loc) · 931 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
FROM akariv/dgp-server:latest
RUN echo "http://nl.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories && \
echo "http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
echo "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && cat /etc/apk/repositories && \
apk --update --no-cache --virtual=build-dependencies add \
build-base python3-dev libxml2-dev libxslt-dev && \
apk add --update --no-cache --upgrade libstdc++ proj-util proj-dev && proj && \
pip install --no-cache-dir pyproj && \
apk del build-dependencies && rm -rf /var/cache/apk/*
ADD taxonomies /dgp/taxonomies/
ADD datacity_server /dgp/datacity_server/
ADD requirements.txt /dgp
RUN python -m pip install -r /dgp/requirements.txt
ADD requirements-dev.txt /dgp
RUN python -m pip install -U -r /dgp/requirements-dev.txt
ENV SERVER_MODULE=datacity_server.server:app
WORKDIR /dgp/