github.com/fthrvi/nakshatra
Dockerfile
1FROM nvcr.io/nvidia/cuda:11.0.3-cudnn8-devel-ubuntu20.042LABEL maintainer="bigscience-workshop"3LABEL repository="petals"45WORKDIR /home6# Set en_US.UTF-8 locale by default7RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment89# Install packages10RUN apt-get update && apt-get install -y --no-install-recommends \11 build-essential \12 wget \13 git \14 && apt-get clean autoclean && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*1516RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O install_miniconda.sh && \17 bash install_miniconda.sh -b -p /opt/conda && rm install_miniconda.sh18ENV PATH="/opt/conda/bin:${PATH}"1920RUN conda install python~=3.10.12 pip && \21 pip install --no-cache-dir "torch>=1.12" && \22 conda clean --all && rm -rf ~/.cache/pip2324VOLUME /cache25ENV PETALS_CACHE=/cache2627COPY . petals/28RUN pip install --no-cache-dir -e petals2930WORKDIR /home/petals/31CMD bash32