ThongCoding commited on
Commit
0401814
·
verified ·
1 Parent(s): af16fe6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -16
Dockerfile CHANGED
@@ -59,7 +59,6 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --no
59
  && rm -rf /root/.cargo /root/.rustup
60
  ENV RUSTUP_HOME=/usr/local/rustup
61
  ENV CARGO_HOME=/usr/local/cargo
62
- ENV PATH=/usr/local/cargo/bin:$PATH
63
 
64
  # -----------------------------
65
  # Go (latest stable)
@@ -67,13 +66,11 @@ ENV PATH=/usr/local/cargo/bin:$PATH
67
  RUN curl -LO https://go.dev/dl/go1.23.0.linux-amd64.tar.gz \
68
  && tar -C /usr/local -xzf go1.23.0.linux-amd64.tar.gz \
69
  && rm go1.23.0.linux-amd64.tar.gz
70
- ENV PATH=/usr/local/go/bin:$PATH
71
-
72
  # -----------------------------
73
  # Node.js + Java + .NET
74
  # -----------------------------
75
- RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
76
- && apt-fast install -y nodejs
77
  RUN apt-fast install -y openjdk-17-jdk
78
  RUN wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
79
  && dpkg -i packages-microsoft-prod.deb \
@@ -86,7 +83,7 @@ RUN npm install -g yarn pnpm
86
  # -----------------------------
87
  # Haskell
88
  # -----------------------------
89
- RUN apt-fast update && apt-fast install -y ghc cabal-install && rm -rf /var/lib/apt/lists/*
90
 
91
  # -----------------------------
92
  # Julia
@@ -101,7 +98,7 @@ RUN JULIA_VERSION=1.11.3 \
101
  # Scala + sbt
102
  # -----------------------------
103
  # Install dependencies
104
- RUN apt-fast update && apt-fast install -y curl gnupg software-properties-common apt-transport-https && rm -rf /var/lib/apt/lists/*
105
 
106
  # Add SBT repository and key
107
  RUN curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x99E82A75642AC823" | gpg --dearmor | tee /usr/share/keyrings/sbt.gpg > /dev/null \
@@ -114,13 +111,13 @@ RUN apt-fast update && apt-fast install -y scala sbt && rm -rf /var/lib/apt/list
114
  # -----------------------------
115
  # PHP + Composer
116
  # -----------------------------
117
- RUN apt-fast update && apt-fast install -y php-cli unzip \
118
  && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && rm -rf /var/lib/apt/lists/*
119
 
120
  # -----------------------------
121
  # Ruby
122
  # -----------------------------
123
- RUN apt-fast update && apt-fast install -y ruby-full && rm -rf /var/lib/apt/lists/*
124
 
125
  # -----------------------------
126
  # code-server
@@ -148,15 +145,13 @@ RUN pip install huggingface_hub huggingface_hub[cli] hf_xet hf_transfer
148
  ENV HF_HUB_ENABLE_HF_TRANSFER=1
149
 
150
  # even more pip packages - full-stack ML
 
151
  RUN pip install numpy scipy pandas matplotlib seaborn scikit-learn \
152
  jupyter jupyterlab \
153
  torch torchvision torchaudio \
154
  tensorflow keras \
155
  datasets transformers accelerate
156
 
157
- # Node tools
158
- RUN npm install -g typescript ts-node nodemon
159
-
160
  # Locales to prevent Unicode issues
161
  RUN apt-fast update && apt-fast install -y locales \
162
  && locale-gen en_US.UTF-8 \
@@ -166,7 +161,7 @@ ENV LANGUAGE=en_US:en
166
  ENV LC_ALL=en_US.UTF-8
167
 
168
  # Database Clients
169
- RUN apt-fast update && apt-fast install -y \
170
  mysql-client \
171
  postgresql-client \
172
  redis-tools \
@@ -181,14 +176,14 @@ RUN wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor
181
  && rm -rf /var/lib/apt/lists/*
182
 
183
  # More build tools
184
- RUN apt-fast update && apt-fast install -y \
185
  autoconf automake libtool m4 \
186
  ninja-build \
187
  nasm yasm \
188
  graphviz doxygen && rm -rf /var/lib/apt/lists/*
189
 
190
  # Productivity + Debug
191
- RUN apt-fast update && apt-fast install -y \
192
  tmux screen neovim \
193
  httpie \
194
  shellcheck \
@@ -238,7 +233,15 @@ RUN useradd -ms /bin/bash vscode \
238
  && chown -R vscode:vscode /home/vscode
239
 
240
  USER vscode
241
- ENV PATH=$PATH:/home/vscode/.local/bin
 
 
 
 
 
 
 
 
242
 
243
  # -----------------------------
244
  # Entrypoint: restore + code-server
 
59
  && rm -rf /root/.cargo /root/.rustup
60
  ENV RUSTUP_HOME=/usr/local/rustup
61
  ENV CARGO_HOME=/usr/local/cargo
 
62
 
63
  # -----------------------------
64
  # Go (latest stable)
 
66
  RUN curl -LO https://go.dev/dl/go1.23.0.linux-amd64.tar.gz \
67
  && tar -C /usr/local -xzf go1.23.0.linux-amd64.tar.gz \
68
  && rm go1.23.0.linux-amd64.tar.gz
69
+
 
70
  # -----------------------------
71
  # Node.js + Java + .NET
72
  # -----------------------------
73
+ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
 
74
  RUN apt-fast install -y openjdk-17-jdk
75
  RUN wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
76
  && dpkg -i packages-microsoft-prod.deb \
 
83
  # -----------------------------
84
  # Haskell
85
  # -----------------------------
86
+ RUN apt-fast install -y ghc cabal-install && rm -rf /var/lib/apt/lists/*
87
 
88
  # -----------------------------
89
  # Julia
 
98
  # Scala + sbt
99
  # -----------------------------
100
  # Install dependencies
101
+ RUN apt-fast install -y curl gnupg software-properties-common apt-transport-https && rm -rf /var/lib/apt/lists/*
102
 
103
  # Add SBT repository and key
104
  RUN curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x99E82A75642AC823" | gpg --dearmor | tee /usr/share/keyrings/sbt.gpg > /dev/null \
 
111
  # -----------------------------
112
  # PHP + Composer
113
  # -----------------------------
114
+ RUN apt-fast install -y php-cli unzip \
115
  && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && rm -rf /var/lib/apt/lists/*
116
 
117
  # -----------------------------
118
  # Ruby
119
  # -----------------------------
120
+ RUN apt-fast install -y ruby-full && rm -rf /var/lib/apt/lists/*
121
 
122
  # -----------------------------
123
  # code-server
 
145
  ENV HF_HUB_ENABLE_HF_TRANSFER=1
146
 
147
  # even more pip packages - full-stack ML
148
+ RUN pip install torch torchao torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
149
  RUN pip install numpy scipy pandas matplotlib seaborn scikit-learn \
150
  jupyter jupyterlab \
151
  torch torchvision torchaudio \
152
  tensorflow keras \
153
  datasets transformers accelerate
154
 
 
 
 
155
  # Locales to prevent Unicode issues
156
  RUN apt-fast update && apt-fast install -y locales \
157
  && locale-gen en_US.UTF-8 \
 
161
  ENV LC_ALL=en_US.UTF-8
162
 
163
  # Database Clients
164
+ RUN apt-fast install -y \
165
  mysql-client \
166
  postgresql-client \
167
  redis-tools \
 
176
  && rm -rf /var/lib/apt/lists/*
177
 
178
  # More build tools
179
+ RUN apt-fast install -y \
180
  autoconf automake libtool m4 \
181
  ninja-build \
182
  nasm yasm \
183
  graphviz doxygen && rm -rf /var/lib/apt/lists/*
184
 
185
  # Productivity + Debug
186
+ RUN apt-fast install -y \
187
  tmux screen neovim \
188
  httpie \
189
  shellcheck \
 
233
  && chown -R vscode:vscode /home/vscode
234
 
235
  USER vscode
236
+ ENV PATH=/usr/local/go/bin:/usr/local/cargo/bin:/home/vscode/.local/bin:$PATH
237
+
238
+ # -----------------------------
239
+ # Node version manager - nvm
240
+ # -----------------------------
241
+ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
242
+ RUN echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bashrc \
243
+ && echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.bashrc \
244
+ && echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' >> ~/.bashrc
245
 
246
  # -----------------------------
247
  # Entrypoint: restore + code-server