Created
June 19, 2024 02:12
-
-
Save bobmayuze/1262d61f5c1130c8b8b9dcbc718c1a93 to your computer and use it in GitHub Desktop.
Dockerfile with conda setup
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
ARG CUDA_VERSION=12.1.0 | |
ARG CUDNN_VERSION=8 | |
ARG UBUNTU_VERSION=22.04 | |
FROM nvcr.io/nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERSION} | |
WORKDIR /workspace | |
RUN apt update | |
RUN apt install wget openssh-server -y | |
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
RUN bash Miniconda3-latest-Linux-x86_64.sh -b -p /usr/conda/ | |
RUN rm Miniconda3-latest-Linux-x86_64.sh | |
RUN chmod 777 /workspace | |
RUN echo ". /usr/conda/etc/profile.d/conda.sh" >> /workspace/.bashrc && chmod 666 /workspace/.bashrc | |
ENV PATH=/usr/conda/bin:$PATH | |
ENV HOME=/workspace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment