Skip to content

Instantly share code, notes, and snippets.

@benman1
Created November 12, 2019 15:47
Show Gist options
  • Save benman1/50e54153dafbdda390abe1c9f22e6626 to your computer and use it in GitHub Desktop.
Save benman1/50e54153dafbdda390abe1c9f22e6626 to your computer and use it in GitHub Desktop.
anaconda dockerfile
FROM continuumio/miniconda3
RUN apt update -qq && apt install -y libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6 build-essential vim curl wget libhdf5-dev
RUN useradd -m docker -s /bin/bash -p '*' && chown -R 1000:1000 /opt/conda
USER docker
RUN conda create -n env python=3.8 && RUN echo "source activate env" > ~/.bashrc
ENV PATH /opt/conda/envs/env/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment