llava-plus-codebase
52 строки · 1.5 Кб
1FROM mcr.microsoft.com/devcontainers/base:ubuntu-20.04
2
3SHELL [ "bash", "-c" ]
4
5# update apt and install packages
6RUN apt update && \
7apt install -yq \
8ffmpeg \
9dkms \
10build-essential
11
12# add user tools
13RUN sudo apt install -yq \
14jq \
15jp \
16tree \
17tldr
18
19# add git-lfs and install
20RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash && \
21sudo apt-get install -yq git-lfs && \
22git lfs install
23
24############################################
25# Setup user
26############################################
27
28USER vscode
29
30# install azcopy, a tool to copy to/from blob storage
31# for more info: https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-blobs-upload#upload-a-file
32RUN cd /tmp && \
33wget https://azcopyvnext.azureedge.net/release20230123/azcopy_linux_amd64_10.17.0.tar.gz && \
34tar xvf azcopy_linux_amd64_10.17.0.tar.gz && \
35mkdir -p ~/.local/bin && \
36mv azcopy_linux_amd64_10.17.0/azcopy ~/.local/bin && \
37chmod +x ~/.local/bin/azcopy && \
38rm -rf azcopy_linux_amd64*
39
40# Setup conda
41RUN cd /tmp && \
42wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
43bash ./Miniconda3-latest-Linux-x86_64.sh -b && \
44rm ./Miniconda3-latest-Linux-x86_64.sh
45
46# Install dotnet
47RUN cd /tmp && \
48wget https://dot.net/v1/dotnet-install.sh && \
49chmod +x dotnet-install.sh && \
50./dotnet-install.sh --channel 7.0 && \
51./dotnet-install.sh --channel 3.1 && \
52rm ./dotnet-install.sh
53
54