File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM nvidia/cuda:12.0.0-base-ubuntu20.04
2+
3+ LABEL maintainer="Alessio Buccino <alessiop.buccino@gmail.com>"
4+
5+ # USER root
6+ # Ubuntu package installs
7+ RUN apt update && \
8+ apt install -y --no-install-recommends \
9+ libfftw3-dev \
10+ git \
11+ wget && \
12+ apt clean && \
13+ rm -rf /var/lib/apt/lists/*
14+
15+ # install miniconda
16+ ENV MINICONDA_VERSION 24.1.2-0
17+ ENV PY_VERSION py311
18+ ENV CONDA_DIR /home/miniconda3
19+ ENV LATEST_CONDA_SCRIPT "Miniconda3-${PY_VERSION}_${MINICONDA_VERSION}-Linux-x86_64.sh"
20+
21+ RUN wget --quiet https://repo.anaconda.com/miniconda/$LATEST_CONDA_SCRIPT -O ~/miniconda.sh && \
22+ bash ~/miniconda.sh -b -p $CONDA_DIR && \
23+ rm ~/miniconda.sh
24+ ENV PATH=$CONDA_DIR/bin:$PATH
25+ RUN conda update conda && \
26+ conda install conda-build
27+
28+ # make conda activate command available from /bin/bash --login shells
29+ RUN echo ". $CONDA_DIR/etc/profile.d/conda.sh" >> /root/.profile
30+ # make conda activate command available from /bin/bash --interactive shells
31+ RUN conda init bash
32+
33+ # install torch
34+ # RUN conda install -y pytorch pytorch-cuda=11.8 -c pytorch -c nvidia
35+ RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
36+
37+ # install kilosort4
38+ RUN pip install kilosort==4.0
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ docker build -t spikeinterface/kilosort4-base:latest -t spikeinterface/kilosort4-base:4.0_cuda-12.0.0 .
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ docker push --all-tags spikeinterface/kilosort4-base
You can’t perform that action at this time.
0 commit comments