File size: 1,319 Bytes
786d4da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ef12564
 
 
786d4da
 
 
 
 
 
 
 
 
 
ef12564
 
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
FROM nvidia/cuda:12.3.1-devel-ubuntu22.04

ARG USERNAME=vscode

COPY library-scripts/common-debian.sh /tmp/library-scripts/
RUN apt-get update && bash /tmp/library-scripts/common-debian.sh true automatic automatic automatic false true true


RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \
    && mkdir -p /commandhistory \
    && touch /commandhistory/.bash_history \
    && chown -R $USERNAME /commandhistory \
    && echo "$SNIPPET" >> "/home/$USERNAME/.bashrc"

RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.zsh_history" \
    && mkdir -p /commandhistory \
    && touch /commandhistory/.zsh_history \
    && chown -R $USERNAME /commandhistory \
    && echo "$SNIPPET" >> "/home/$USERNAME/.zshrc"

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
    && apt-get -y install --no-install-recommends \
    vim \
    git \
    git-lfs \
    zsh \
    tmux \
    wget \
    python3 \
    python3-dev \
    python3-pip \
    python3-setuptools \
    libgl1-mesa-dev \
    libglib2.0-0 \
    unzip \
    curl

RUN git lfs install

USER vscode 

RUN python3 -m pip install --upgrade pip \
    && pip install --no-cache-dir \
    ultralytics \
    pillow \
    gradio

RUN curl -fsSL https://fnm.vercel.app/install | bash