ThongCoder commited on
Commit
171b332
·
verified ·
1 Parent(s): 3dc78fb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +59 -19
Dockerfile CHANGED
@@ -64,6 +64,32 @@ RUN wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-p
64
  # Yarn + Pnpm build tools
65
  RUN npm install -g yarn pnpm
66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  # -----------------------------
68
  # code-server
69
  # -----------------------------
@@ -90,6 +116,13 @@ RUN pip install --upgrade pip setuptools wheel \
90
  RUN pip install huggingface_hub huggingface_hub[cli] hf_xet hf_transfer
91
  ENV HF_HUB_ENABLE_HF_TRANSFER=1
92
 
 
 
 
 
 
 
 
93
  # Node tools
94
  RUN npm install -g typescript ts-node nodemon
95
 
@@ -101,22 +134,23 @@ ENV LANG=en_US.UTF-8
101
  ENV LANGUAGE=en_US:en
102
  ENV LC_ALL=en_US.UTF-8
103
 
104
- # -----------------------------
105
- # Check versions of installed tools
106
- # -----------------------------
107
- RUN echo "===== Installed versions =====" && \
108
- python3 --version && pip --version && \
109
- rustc --version && cargo --version && \
110
- go version && \
111
- node -v && npm -v && yarn -v && pnpm -v && \
112
- java -version && javac -version && \
113
- dotnet --version && \
114
- cmake --version && ninja --version && \
115
- gcc --version && g++ --version && \
116
- clang --version && lldb --version && \
117
- git --version && git lfs version && \
118
- jq --version && htop --version && \
119
- fzf --version && rg --version && ag --version
 
120
 
121
  # -----------------------------
122
  # Disable bash history for all future shells
@@ -157,9 +191,15 @@ RUN useradd -ms /bin/bash vscode \
157
  USER vscode
158
  ENV PATH=$PATH:/home/vscode/.local/bin
159
 
 
 
 
 
 
 
 
 
160
  # -----------------------------
161
  # Entrypoint: restore + code-server
162
  # -----------------------------
163
- CMD /bin/bash -c "\
164
- python3 /restore.py && \
165
- code-server --bind-addr 0.0.0.0:7860 --auth none /home/vscode/workspace"
 
64
  # Yarn + Pnpm build tools
65
  RUN npm install -g yarn pnpm
66
 
67
+ # -----------------------------
68
+ # Haskell
69
+ # -----------------------------
70
+ RUN apt-get update && apt-get install -y ghc cabal-install && rm -rf /var/lib/apt/lists/*
71
+
72
+ # -----------------------------
73
+ # Julia
74
+ # -----------------------------
75
+ RUN apt-get update && apt-get install -y julia && rm -rf /var/lib/apt/lists/*
76
+
77
+ # -----------------------------
78
+ # Scala + sbt
79
+ # -----------------------------
80
+ RUN apt-get update && apt-get install -y scala sbt && rm -rf /var/lib/apt/lists/*
81
+
82
+ # -----------------------------
83
+ # PHP + Composer
84
+ # -----------------------------
85
+ RUN apt-get update && apt-get install -y php-cli unzip \
86
+ && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && rm -rf /var/lib/apt/lists/*
87
+
88
+ # -----------------------------
89
+ # Ruby
90
+ # -----------------------------
91
+ RUN apt-get update && apt-get install -y ruby-full && rm -rf /var/lib/apt/lists/*
92
+
93
  # -----------------------------
94
  # code-server
95
  # -----------------------------
 
116
  RUN pip install huggingface_hub huggingface_hub[cli] hf_xet hf_transfer
117
  ENV HF_HUB_ENABLE_HF_TRANSFER=1
118
 
119
+ # even more pip packages - full-stack ML
120
+ RUN pip install numpy scipy pandas matplotlib seaborn scikit-learn \
121
+ jupyter jupyterlab \
122
+ torch torchvision torchaudio \
123
+ tensorflow keras \
124
+ datasets transformers accelerate
125
+
126
  # Node tools
127
  RUN npm install -g typescript ts-node nodemon
128
 
 
134
  ENV LANGUAGE=en_US:en
135
  ENV LC_ALL=en_US.UTF-8
136
 
137
+ # Database Clients
138
+ RUN apt-get update && apt-get install -y \
139
+ mysql-client postgresql-client redis-tools mongodb-clients && rm -rf /var/lib/apt/lists/*
140
+
141
+ # More build tools
142
+ RUN apt-get update && apt-get install -y \
143
+ autoconf automake libtool m4 \
144
+ ninja-build \
145
+ nasm yasm \
146
+ graphviz doxygen && rm -rf /var/lib/apt/lists/*
147
+
148
+ # Productivity + Debug
149
+ RUN apt-get update && apt-get install -y \
150
+ tmux screen neovim \
151
+ httpie \
152
+ shellcheck \
153
+ man-db manpages-dev && rm -rf /var/lib/apt/lists/*
154
 
155
  # -----------------------------
156
  # Disable bash history for all future shells
 
191
  USER vscode
192
  ENV PATH=$PATH:/home/vscode/.local/bin
193
 
194
+ # -----------------------------
195
+ # Start the restoration step
196
+ # -----------------------------
197
+ RUN hf download ThongCoder/vscode-public-data /backup /home/vscode --repo-type dataset
198
+ RUN cat workspace-backup.tar.gz.part-* > workspace-backup.tar.gz
199
+ RUN tar -xzf workspace-backup.tar.gz
200
+ RUN rm -rf /home/vscode/backup/*
201
+
202
  # -----------------------------
203
  # Entrypoint: restore + code-server
204
  # -----------------------------
205
+ CMD /bin/bash -c "code-server --bind-addr 0.0.0.0:7860 --auth none /home/vscode/workspace"