-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
39 lines (31 loc) · 1.17 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
FROM --platform=linux/amd64 redcapcustodian
WORKDIR /home/rocker
## install additional system libraries not included in redcapcustodian if necessary
# e.g. to add sftp support
# RUN apt update -y && apt install -y openssh-client
## install additional R libraries not included in redcapcustodian if necessary
RUN R -e "install.packages(c( \
'tableHTML', \
'argparse' \
))"
## Install our private rcc.ctsit package
## see: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
## Also see https://docs.github.com/en/developers/apps/getting-started-with-apps/about-apps
## e.g. pin to a specific version of an R package
# RUN R -e "devtools::install_github('OuhscBbmc/REDCapR', ref='c5bce6a')"
# build and install this package
ADD . /home/rocker/rcc.billing
RUN R CMD build rcc.billing
RUN R CMD INSTALL rcc.billing_*.tar.gz
RUN rm -rf rcc.billing
# Add non-package things
ADD . /home/rocker
RUN rm -rf .Rbuildignore
RUN rm -rf NAMESPACE
RUN rm -rf R
RUN rm -rf .dockerignore
RUN rm -rf DESCRIPTION
RUN rm -rf .Rhistory
RUN rm -rf Dockerfile
# Note where we are, what is there, and what's in the package dir
CMD pwd && ls -AlhF ./