-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (25 loc) · 1.25 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
FROM ubuntu:16.04
LABEL software=rnmr
LABEL software.version=1.1.9
LABEL version=0.2
LABEL Description="rNMR: open source software for identifying and quantifying metabolites in NMR spectra."
MAINTAINER PhenoMeNal-H2020 Project <phenomenal-h2020-users@googlegroups.com>
# Environment variables needed for installing with xvfb
ENV DEBIAN_FRONTEND=noninteractive
ENV DISPLAY=":1"
ENV PATH="/usr/local/bin/:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/bin:/sbin"
ENV PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig"
ENV LD_LIBRARY_PATH="/usr/lib64:/usr/lib:/usr/local/lib64:/usr/local/lib"
# Install dependencies
RUN echo "no"
RUN apt-get -y update
RUN apt-get -y install apt-utils coreutils git r-base r-cran-tcltk2 subversion subversion-tools wget xfonts-75dpi xfonts-100dpi xfstt xinit xterm xvfb
# Clean-up
RUN apt-get -y clean && apt-get -y autoremove && rm -rf /var/lib/{cache,log}/ /tmp/* /var/tmp/*
# Fetch rNMR
WORKDIR /usr/src
RUN svn checkout svn://svn.code.sf.net/p/rnmr/code/ rnmr-code
# Install rNMR
RUN /usr/bin/xvfb-run R -e "install.packages(\"/usr/src/rnmr-code/current\ release/rNMR\", repos=NULL, type=\"source\")"
# Remove rNMR sources to save space
RUN rm -rf /usr/src/rnmr-code