-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (32 loc) · 1.23 KB
/
Dockerfile
File metadata and controls
41 lines (32 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM nvidia/cuda:12.0.0-base-ubuntu20.04
LABEL maintainer="Alessio Buccino <alessiop.buccino@gmail.com>"
ENV KILOSORT4_VERSION=4.0.30
# USER root
# Ubuntu package installs
RUN apt update && \
apt install -y --no-install-recommends \
libfftw3-dev \
git \
wget && \
apt clean && \
rm -rf /var/lib/apt/lists/*
# install miniconda
ENV MINICONDA_VERSION 24.1.2-0
ENV PY_VERSION py311
ENV CONDA_DIR /home/miniconda3
ENV LATEST_CONDA_SCRIPT "Miniconda3-${PY_VERSION}_${MINICONDA_VERSION}-Linux-x86_64.sh"
RUN wget --quiet https://repo.anaconda.com/miniconda/$LATEST_CONDA_SCRIPT -O ~/miniconda.sh && \
bash ~/miniconda.sh -b -p $CONDA_DIR && \
rm ~/miniconda.sh
ENV PATH=$CONDA_DIR/bin:$PATH
RUN conda update conda && \
conda install conda-build
# make conda activate command available from /bin/bash --login shells
RUN echo ". $CONDA_DIR/etc/profile.d/conda.sh" >> /root/.profile
# make conda activate command available from /bin/bash --interactive shells
RUN conda init bash
# install torch
# RUN conda install -y pytorch pytorch-cuda=11.8 -c pytorch -c nvidia
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
# install kilosort4
RUN pip install kilosort==$KILOSORT4_VERSION