Created
January 8, 2020 11:41
-
-
Save voidspace/8d587055b2d1b4a764853ee5c43a371c to your computer and use it in GitHub Desktop.
Dockerfile template for Python 3.6 with conda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN apt-get update --fix-missing | |
RUN apt-get upgrade -y | |
RUN apt-get -y install locales | |
RUN locale-gen en_US.UTF-8 | |
ENV LC_CTYPE en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' | |
RUN apt-get install -y curl wget git apt-utils build-essential | |
# Install miniconda to /miniconda | |
RUN curl -LO http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
RUN bash Miniconda3-latest-Linux-x86_64.sh -p /miniconda -b | |
RUN rm Miniconda3-latest-Linux-x86_64.sh | |
ENV PATH=/miniconda/bin:${PATH} | |
RUN conda update -n base -c defaults conda | |
RUN conda create -n env python=3.6 | |
ENV PYB=/miniconda/envs/env/bin | |
ENV PATH=$PYB:${PATH} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment