Created
March 22, 2023 14:27
-
-
Save jonathantito/78c030f8a094a073637f7092d2aee3d2 to your computer and use it in GitHub Desktop.
INSTALL MINICONDA IN DOCKERFILE VSCODE
This file contains 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 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