Skip to content
Snippets Groups Projects
Dockerfile 1.13 KiB
Newer Older
Rok Roškar's avatar
Rok Roškar committed
FROM renku/renkulab:renku0.10.3-r3.6.1-0.6.2

USER root

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    apt-utils \
    dirmngr \
    gpg-agent \
    less \
    libcurl4-openssl-dev \
    libxml2-dev \
    libz-dev \
    software-properties-common
# install the R dependencies
COPY install.R /tmp/
RUN R -f /tmp/install.R

# install the python dependencies
COPY requirements.txt environment.yml /tmp/
RUN conda env update -q -f /tmp/environment.yml && \
    /opt/conda/bin/pip install --ignore-installed -r /tmp/requirements.txt && \
Rok Roškar's avatar
Rok Roškar committed
    jupyter labextension install --no-build @jupyter-voila/jupyterlab-preview && \
    jupyter labextension install --no-build @jupyter-widgets/jupyterlab-manager && \
    jupyter lab build && \
    conda env export -n "root"
# install our utilities package
COPY --chown=rstudio:rstudio src /code/src
RUN ln -s /code/src
RUN pip install -e src/covid-19/covid_19_utils

RUN pipx install --force "renku==0.10.4"

RUN wget -O ~/.local/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && \
    chmod u+x ~/.local/bin/jq