-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
39 lines (33 loc) · 1.14 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
33
34
35
36
37
38
39
ARG BUILDPLATFORM=linux/x86_64
FROM --platform=${BUILDPLATFORM} rocker/verse:4.4.1
LABEL org.opencontainers.image.authors="support@civisanalytics.com"
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y --no-install-recommends && \
apt-get install -y --no-install-recommends \
curl \
libudunits2-dev \
libcairo-dev \
libgdal-dev \
libgeos-dev \
libglu1-mesa-dev \
libsodium-dev \
libx11-dev \
mesa-common-dev \
python3-pip \
python3-setuptools \
wget && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# tuck the python client here just in case
COPY ./requirements-python.txt /requirements-python.txt
RUN pip3 install -r requirements-python.txt && \
rm -rf ~/.cache/pip
COPY ./requirements.txt /requirements.txt
RUN Rscript -e 'install.packages(readLines("requirements.txt"))'
# install civis api client
RUN Rscript -e 'install.packages("civis")'
# rocker/verse includes "fst" which has an AGPL license
RUN Rscript -e 'remove.packages("fst")'
ENV VERSION=6.0.0 \
VERSION_MAJOR=6 \
VERSION_MINOR=0 \
VERSION_MICRO=0