-
Notifications
You must be signed in to change notification settings - Fork 0
/
jammy.Dockerfile
34 lines (32 loc) · 1.13 KB
/
jammy.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
FROM rocker/r-ver:latest
WORKDIR /usr/local/src/myscripts
RUN apt-get update && \
apt-get install -yyy \
build-essential \
libcurl4-gnutls-dev \
libxml2-dev \
libssl-dev \
libgmp3-dev \
cmake \
libcairo2-dev \
libxt-dev \
libharfbuzz-dev \
libtiff-dev
# Wait until MRCIEU R-Universe has built latest version of the TwoSampleMR binary
# Should be 1 hour or maybe overnight
# Check https://mrcieu.r-universe.dev/TwoSampleMR
# I set the HTTPUserAgent option in order to obtain binary packages from the
# Public Posit Package Manager (otherwise source packages which will have to
# be built will be obtained).
RUN R -e 'options( \
repos = c(universe = "https://mrcieu.r-universe.dev", \
binaries = "https://p3m.dev/cran/__linux__/jammy/latest", \
CRAN = "https://cloud.r-project.org"), \
HTTPUserAgent = sprintf( \
"R/%s R (%s)", \
getRversion(), \
paste(getRversion(), \
R.version["platform"], \
R.version["arch"], \
R.version["os"]))); \
install.packages("TwoSampleMR", dependencies = TRUE)'