Newer
Older
# For finding latest versions of the base image see
# https://github.com/SwissDataScienceCenter/renkulab-docker
FROM ${RENKU_BASE_IMAGE}
# add Visual Studio Code editor
# ENV VSCODE_VERSION=3.8.0
RUN curl -s https://raw.githubusercontent.com/SwissDataScienceCenter/renkulab-docker/master/scripts/install-vscode.sh | bash
# Uncomment and adapt if code is to be included in the image
# COPY src /code/src
# Uncomment and adapt if your R or python packages require extra linux (ubuntu) software
# e.g. the following installs apt-utils and vim; each pkg on its own line, all lines
# except for the last end with backslash '\' to continue the RUN line
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends \
apt-utils \
bash-completion \
vim \
jq \
less \
wget \
curl \
unzip \
apt-get -y clean && \
apt-get -y autoclean && \
apt-get -y autoremove
USER ${NB_USER}
# install the python dependencies
COPY requirements.txt environment.yml /tmp/
RUN conda env update -q -f /tmp/environment.yml && \
/opt/conda/bin/pip install -r /tmp/requirements.txt && \
conda clean -y --all && \
conda env export -n "root"
# RENKU_VERSION determines the version of the renku CLI
# that will be used in this image. To find the latest version,
# visit https://pypi.org/project/renku/#history.
########################################################
# Do not edit this section and do not add anything below
RUN if [ -n "$RENKU_VERSION" ] ; then \
pipx uninstall renku && \
pipx install --force renku==${RENKU_VERSION} \
; fi
########################################################