-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
23 lines (15 loc) · 773 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
# Dockerfile to render the CODECHECK register, see https://github.com/codecheckers/register
FROM rocker/verse:4.2
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
# needed for zen4R's dependency 'keyring'
libsecret-1-dev
ENV R_REMOTES_UPGRADE="never"
RUN R -q -e 'remotes::install_github("codecheckers/codecheck")'
WORKDIR /register
ENTRYPOINT [ "R" ]
# set R.cache path to avoid interactive prompt
CMD [ "-e", "options(\"R.cache.rootPath\" = \"/tmp\"); codecheck::register_render(); warnings()'" ]
LABEL maintainer = "Daniel Nüst <daniel.nuest@uni-muenster.de>"
# Usage, from local copy of the register repository
# docker build --tag codecheckers-register .
# docker run --rm -it --user rstudio -v $(pwd):/register codecheckers-register