Skip to content

Instantly share code, notes, and snippets.

@callemo
Created February 1, 2019 13:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save callemo/23dc97147d56ff82b0f350d0a0a2a074 to your computer and use it in GitHub Desktop.
Save callemo/23dc97147d56ff82b0f350d0a0a2a074 to your computer and use it in GitHub Desktop.
Cling environment
FROM debian:buster
ENV SHELL=/bin/bash
RUN apt-get update -y && apt-get install -y \
bash-completion \
build-essential \
cmake \
ctags \
curl \
git \
git-extras \
less \
libreadline-dev \
man-db \
nodejs \
npm \
python3 \
silversearcher-ag \
sudo \
tmux \
vim-nox
ARG user=user
RUN adduser --disabled-password --gecos '' --uid 1000 $user \
&& echo "$user ALL=(ALL) NOPASSWD:ALL" > "/etc/sudoers.d/$user"
USER $user
WORKDIR /home/$user
RUN curl -sS -o miniconda.sh \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& /bin/sh miniconda.sh -b -p "/home/$user/.local/miniconda3" && rm ./miniconda.sh
ENV PATH="/home/$user/.local/miniconda3/bin:$PATH"
RUN conda install --quiet --yes --channel conda-forge \
jupyterlab \
matplotlib \
numpy \
pandas \
scipy \
seaborn \
xeus-cling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment