File size: 923 Bytes
b111f5d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
42
43
44
45
46
47
48
49
50
Bootstrap: docker
From: continuumio/miniconda3

%environment
  export DEBIAN_FRONTEND=noninteractive

%post
  apt-get update && \
  apt-get install -y --no-install-recommends \
      ca-certificates \
      build-essential \
      git \
      curl \
      tmux \
      htop \
      nano \
      vim \
      pipx \
      libreadline-dev \
      libncursesw5-dev \
      libssl-dev \
      libsqlite3-dev \
      libgdbm-dev \
      libc6-dev \
      libbz2-dev \
      libffi-dev \
      libpq-dev \
      liblzma-dev \
      libopenblas-dev \
      libgl1-mesa-dev \
      libglib2.0-0 \
      libsm6 \
      libxext6 \
      ffmpeg \
      tk-dev \
      ninja-build && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/*

  # run conda init and source bashrc
  conda init bash

  . /root/.bashrc
  
  # Create a directory for project files
  mkdir -p /project

%runscript
  # Run the command using the script
  exec "$@"