-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (40 loc) · 1.03 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
40
41
42
43
44
45
46
47
FROM python:3.9.0-buster
WORKDIR /src
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONUNBUFFERED 1
ENV TZ UTC
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
git \
libhdf5-serial-dev \
libmagic-dev \
libnetcdf-dev \
libssl-dev \
locales \
netcdf-bin \
procps \
r-base \
r-base-dev \
unzip \
wget \
&& locale-gen en_US.UTF-8 \
&& update-locale \
&& rm -rf /var/lib/apt/lists/*
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
# Pull STILT framework.
# https://github.com/uataq/stilt/commit/733d95712072c7a13cfc6a9a0106d712f480c002
ENV STILT_PATH /usr/local/stilt
RUN git clone --depth=1 \
https://github.com/uataq/stilt ${STILT_PATH} \
&& (cd ${STILT_PATH} \
&& ./setup \
&& Rscript r/dependencies.r)
# Install python dependencies.
COPY . .
RUN pip install --upgrade pip \
&& pip install .
CMD [ "stiltctl", "--help" ]