forked from developmentseed/geolambda
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 732 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (21 loc) · 732 Bytes
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
ARG VERSION=2.1.0
FROM developmentseed/geolambda:${VERSION}
LABEL maintainer="Development Seed <info@developmentseed.org>"
LABEL authors="Matthew Hanson <matt.a.hanson@gmail.com>"
ARG PYVERSION=3.7.9
# install Python
ENV \
PYENV_ROOT=/root/.pyenv \
PATH=/root/.pyenv/shims:/root/.pyenv/bin:$PATH
RUN \
curl https://pyenv.run | bash; \
CONFIGURE_OPTS="--with-openssl=${PREFIX}/openssl --enable-loadable-sqlite-extensions" \
LD_RUN_PATH="${PREFIX}/openssl/lib" \
pyenv install ${PYVERSION}; \
pyenv global ${PYVERSION}; \
pip install --upgrade pip
COPY requirements*.txt ./
RUN \
pip install -r requirements-pre.txt; \
pip install -r requirements.txt
COPY bin/* /usr/local/bin/