-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
48 lines (41 loc) · 1.2 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
# based on existing Docker image
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
# dependencies, some are probably unnecessary
RUN apt-get update && apt-get install -y wget && apt-get install -y --no-install-recommends build-essential r-base python3.9 python3-pip python3-setuptools python3-dev
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
r-base-dev \
libgsl0-dev \
libxml2-dev \
libcairo2-dev \
libsqlite-dev \
libpq-dev \
libicu-dev \
libbz2-dev \
liblzma-dev \
libfontconfig1-dev \
libssl-dev \
libcurl4-openssl-dev \
libnetcdf-dev \
udunits-bin \
libopenblas-dev \
libudunits2-dev \
curl
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
autoconf \
automake \
g++ \
gcc \
gfortran \
make \
&& apt-get clean all \
&& rm -rf /var/lib/apt/lists/*
# Python packages
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip3 install -r requirements.txt
# R packages
RUN LC_ALL=C.UTF-8 Rscript -e "install.packages('data.table')"
RUN LC_ALL=C.UTF-8 Rscript -e "install.packages('logger')"
RUN LC_ALL=C.UTF-8 Rscript -e "install.packages('Rfast')"
COPY . /app