Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jonathantito/78c030f8a094a073637f7092d2aee3d2 to your computer and use it in GitHub Desktop.
Save jonathantito/78c030f8a094a073637f7092d2aee3d2 to your computer and use it in GitHub Desktop.
INSTALL MINICONDA IN DOCKERFILE VSCODE
FROM mcr.microsoft.com/vscode/devcontainers/cpp:ubuntu-22.04
#####Install miniconda
# Use the above args during building https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
ARG CONDA_VER
ARG OS_TYPE
# Install miniconda to /miniconda
RUN curl -LO "http://repo.continuum.io/miniconda/Miniconda3-${CONDA_VER}-Linux-${OS_TYPE}.sh"
RUN bash Miniconda3-${CONDA_VER}-Linux-${OS_TYPE}.sh -p /miniconda -b
RUN rm Miniconda3-${CONDA_VER}-Linux-${OS_TYPE}.sh
ENV PATH=/miniconda/bin:${PATH}
RUN conda update -y conda
ARG PY_VER
# Install packages from conda and downgrade py (optional).
RUN conda install -c anaconda -y python=${PY_VER}
COPY enviroment_devcontainer.yml .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment