-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (37 loc) · 1.36 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
FROM ubuntu:focal
ARG DEBIAN_FRONTEND=noninteractive
ENV LANG=C.UTF-8
# Install basics
RUN \
apt-get update && \
apt-get install -y --no-install-recommends ca-certificates libssl-dev curl openssh-client gnupg dirmngr git && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Install C/C++ build tools
RUN \
apt-get update && \
apt-get install -y --no-install-recommends make g++ clang-8 llvm-8 llvm-8-dev zlib1g-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
ln -s /usr/bin/llvm-config-8 /usr/bin/llvm-config && \
ln -s /usr/bin/clang-8 /usr/bin/clang && \
ln -s /usr/bin/clang-cpp-8 /usr/bin/clang++
# Install Rust
RUN \
apt-get update && \
apt-get install -y --no-install-recommends cargo && \
apt-get clean && rm -rf /var/lib/apt/lists/*
ENV SBT_VERSION 1.3.5
# Install OpenJDK and sbt
RUN \
curl -L -o sbt-$SBT_VERSION.deb http://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb && \
dpkg -i sbt-$SBT_VERSION.deb && \
rm sbt-$SBT_VERSION.deb && \
apt-get update && \
apt-get install -y --no-install-recommends openjdk-8-jdk sbt && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Install R
RUN \
apt-get update && \
apt install -y --no-install-recommends r-base r-cran-tidyverse pkg-config libxml2-dev libcurl4-openssl-dev fonts-dejavu-core && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# TODO: some persistence?
# VOLUME /data