Skip to content

Instantly share code, notes, and snippets.

@philipp-baumann
Created October 6, 2019 16:00
Show Gist options
  • Save philipp-baumann/8c5103b387e994212e4f1524ed05c978 to your computer and use it in GitHub Desktop.
Save philipp-baumann/8c5103b387e994212e4f1524ed05c978 to your computer and use it in GitHub Desktop.
Dockerfile for "A new method for estimating the water retention characteristics and water holding capacity of soils"
# Pull docker image (includes RStudio server)
FROM rocker/rstudio:3.6.0
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libz-dev \
libxml2-dev
ENV RENV_VERSION 0.7.0-111
RUN R -e "install.packages('remotes', repos = c(CRAN = 'https://cloud.r-project.org'))"
RUN R -e "remotes::install_github('rstudio/renv@${RENV_VERSION}')"
RUN mkdir /home/rstudio/swr-spc
WORKDIR /home/rstudio/swr-spc
COPY renv.lock ./
RUN R -e 'renv::restore()'
# Copy all, use .dockerignore in root to exclude
COPY . /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment