-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile
70 lines (47 loc) · 2.13 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# syntax=docker/dockerfile:1
# must use bookworm for directly compatible R version >=4.4.0
FROM debian:bullseye-slim AS base
# get latest version of R: https://cran.r-project.org/bin/linux/debian/
RUN apt-get update
RUN apt-get install -y gnupg2
RUN apt-get install -y perl python3
# set locale
RUN apt-get install -y locales
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
RUN gpg --keyserver keyserver.ubuntu.com \
--recv-key '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7'
RUN gpg --armor --export '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7' | \
tee /etc/apt/trusted.gpg.d/cran_debian_key.asc
RUN echo 'deb http://cloud.r-project.org/bin/linux/debian bullseye-cran40/' >> /etc/apt/sources.list
RUN apt-get update
# fix version of Java for bpipe 0.9.9.2
RUN apt-get install -y r-base-core r-bioc-iranges openjdk-11-jre --no-install-recommends
# install libncurses.so.6 for minimap2
RUN apt-get install -y libncurses6 --no-install-recommends
FROM base AS build
# install useful tools for building non-R software
# this is placed after the R installs so that they can
# be cached
RUN apt-get install -y build-essential wget make cmake unzip zip python3 zlib1g-dev libncurses-dev
WORKDIR /JAFFA
COPY ./install_linux64.sh .
COPY ./src ./src
RUN ./install_linux64.sh
COPY . .
# set a reference file path to /ref for easy binding
RUN sed -i 's/refBase = codeBase/refBase = "\/ref"/' JAFFA_stages.groovy
# we only need this to run the image
FROM base
LABEL org.opencontainers.image.title "JAFFA" \
org.opencontainers.image.description "High sensitivity transcriptome-focused fusion gene detection." \
org.opencontainers.image.authors "Davidson, N.M., Majewski, I.J. & Oshlack, A." \
org.opencontainers.image.source "https://github.com/Oshlack/JAFFA" \
org.opencontainers.image.documentation "https://github.com/Oshlack/JAFFA/wiki/HowToSetUpJAFFA#docker"
COPY --from=build /JAFFA /JAFFA
# RUN strip --strip-debug /usr/local/lib/R/site-library/*/libs/*.so
RUN apt remove -y gcc
RUN apt autoremove
ENV PATH=${PATH}:/JAFFA/tools/bin:/JAFFA
ENTRYPOINT ["/JAFFA/tools/bin/bpipe", "run"]