-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (27 loc) · 889 Bytes
/
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
# NOTE: Build without caching to ensure latest version of git repo
# docker build --no-cache -t cleanad .
# Would be better if synapser docker images were tagged
FROM sagebionetworks/synapser:latest
RUN install2.r --error \
config \
dplyr \
glue \
lubridate \
purrr \
readr \
readxl \
rjson \
tidyr \
log4r \
mockery \
optparse \
testthat
RUN apt-get update --allow-releaseinfo-change && \
apt-get install git-all -y
# Clone repo and install
# Github API call will return different results if head changes, invalidating the cache for this step
ADD https://api.github.com/repos/Sage-Bionetworks/cleanAD/git/refs/heads/master version.json
RUN git clone https://github.com/Sage-Bionetworks/cleanAD.git
RUN chmod +x cleanAD/update_table.sh cleanAD/scheduled_job_update_table.sh
RUN R CMD INSTALL ./cleanAD
CMD ["/bin/bash"]