-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (28 loc) · 1.41 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
FROM churchilllab/simplerestrserve:2.0.0
RUN apt-get update && \
apt-get install -y --no-install-recommends \
cmake \
supervisor && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# install the dependencies and qtl2
RUN R -e 'remotes::install_version("janitor", version = "2.2.0")' \
&& R -e 'remotes::install_version("missMDA", version = "1.19")' \
&& R -e 'remotes::install_version("RSQLite", version = "2.3.6")' \
&& R -e 'remotes::install_version("gtools", version = "3.9.5")' \
&& R -e 'remotes::install_version("qtl2", version="0.34")' \
&& R -e 'remotes::install_version("tictoc", version="1.2.1")' \
&& R -e 'remotes::install_github("coolbutuseless/yyjsonr", ref="431cca9")'
# Uncomment the following when wanting to force re-compile of anything below
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
# install the wrapper
RUN R -e 'remotes::install_github("churchill-lab/[email protected]")'
SHELL ["/bin/bash", "-c"]
ENV INSTALL_PATH /app/qtl2rest
RUN mkdir -p $INSTALL_PATH/data/rdata $INSTALL_PATH/data/sqlite $INSTALL_PATH/conf
WORKDIR $INSTALL_PATH
# Uncomment the following when wanting to force re-compile of anything below
#ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
COPY ./src/* .
COPY ./conf/supervisor.conf $INSTALL_PATH/conf/supervisor.conf
CMD ["/usr/bin/supervisord", "-n", "-c", "/app/qtl2rest/conf/supervisor.conf"]