ThongCoding commited on
Commit
e9ad72c
·
verified ·
1 Parent(s): 21edae7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -14
Dockerfile CHANGED
@@ -29,14 +29,13 @@ RUN apt-fast update && apt-fast install -y \
29
  net-tools iputils-ping \
30
  rsync git-extras pigz \
31
  fzf silversearcher-ag ripgrep mingw-w64 \
32
- python3.12 python3.12-dev python3-pip \
33
- && rm -rf /var/lib/apt/lists/*
34
 
35
  # Enable Git LFS
36
  RUN git lfs install
37
 
38
  # Remove Ubuntu’s setuptools + wheel (optional, but allowed)
39
- RUN apt-fast remove -y python3-wheel python3-setuptools && rm -rf /var/lib/apt/lists/*
40
 
41
  # Reinstall pip, setuptools, wheel using the official bootstrap
42
  RUN curl -sS https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py \
@@ -70,12 +69,23 @@ RUN curl -LO https://go.dev/dl/go1.23.0.linux-amd64.tar.gz \
70
  # -----------------------------
71
  # Java Development Kit 17
72
  # -----------------------------
73
- RUN apt-fast update && apt-fast install -y openjdk-17-jdk
 
 
 
 
 
 
 
 
 
 
 
74
 
75
  # -----------------------------
76
  # Haskell
77
  # -----------------------------
78
- RUN apt-fast install -y ghc cabal-install && rm -rf /var/lib/apt/lists/*
79
 
80
  # -----------------------------
81
  # Julia
@@ -90,7 +100,7 @@ RUN JULIA_VERSION=1.11.3 \
90
  # Scala + sbt
91
  # -----------------------------
92
  # Install dependencies
93
- RUN apt-fast install -y curl gnupg software-properties-common apt-transport-https && rm -rf /var/lib/apt/lists/*
94
 
95
  # Add SBT repository and key
96
  RUN curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x99E82A75642AC823" | gpg --dearmor | tee /usr/share/keyrings/sbt.gpg > /dev/null \
@@ -98,7 +108,7 @@ RUN curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x99E82A7564
98
  && echo "deb [signed-by=/usr/share/keyrings/sbt.gpg] https://repo.scala-sbt.org/scalasbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
99
 
100
  # Install Scala + SBT
101
- RUN apt-fast update && apt-fast install -y scala sbt && rm -rf /var/lib/apt/lists/*
102
 
103
  # -----------------------------
104
  # code-server
@@ -146,29 +156,27 @@ RUN apt-fast install -y \
146
  mysql-client \
147
  postgresql-client \
148
  redis-tools \
149
- gnupg wget ca-certificates \
150
- && rm -rf /var/lib/apt/lists/*
151
 
152
  # Install MongoDB Database Tools (mongo, mongodump, etc.)
153
  RUN wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb.gpg \
154
  && echo "deb [signed-by=/usr/share/keyrings/mongodb.gpg] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" \
155
  | tee /etc/apt/sources.list.d/mongodb-org-7.0.list \
156
- && apt-fast update && apt-fast install -y mongodb-database-tools \
157
- && rm -rf /var/lib/apt/lists/*
158
 
159
  # More build tools
160
  RUN apt-fast install -y \
161
  autoconf automake libtool m4 \
162
  ninja-build \
163
  nasm yasm \
164
- graphviz doxygen && rm -rf /var/lib/apt/lists/*
165
 
166
  # Productivity + Debug
167
  RUN apt-fast install -y \
168
  tmux screen neovim \
169
  httpie \
170
  shellcheck \
171
- man-db manpages-dev && rm -rf /var/lib/apt/lists/*
172
 
173
  # Removing cache
174
  RUN apt-fast clean
@@ -227,7 +235,6 @@ RUN echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bashrc \
227
  # -----------------------------
228
  # Entrypoint: restore + code-server
229
  # -----------------------------
230
- EXPOSE 22
231
  EXPOSE 7860
232
 
233
  CMD /bin/bash -c "code-server --bind-addr 0.0.0.0:7860 --auth password /home/vscode/workspace"
 
29
  net-tools iputils-ping \
30
  rsync git-extras pigz \
31
  fzf silversearcher-ag ripgrep mingw-w64 \
32
+ python3.12 python3.12-dev python3-pip
 
33
 
34
  # Enable Git LFS
35
  RUN git lfs install
36
 
37
  # Remove Ubuntu’s setuptools + wheel (optional, but allowed)
38
+ RUN apt-fast remove -y python3-wheel python3-setuptools
39
 
40
  # Reinstall pip, setuptools, wheel using the official bootstrap
41
  RUN curl -sS https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py \
 
69
  # -----------------------------
70
  # Java Development Kit 17
71
  # -----------------------------
72
+ RUN apt-fast install -y openjdk-17-jdk
73
+
74
+ # -----------------------------
75
+ # PHP + Composer
76
+ # -----------------------------
77
+ RUN apt-fast install -y php-cli unzip \
78
+ && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
79
+
80
+ # -----------------------------
81
+ # Ruby
82
+ # -----------------------------
83
+ RUN apt-fast install -y ruby-full
84
 
85
  # -----------------------------
86
  # Haskell
87
  # -----------------------------
88
+ RUN apt-fast install -y ghc cabal-install
89
 
90
  # -----------------------------
91
  # Julia
 
100
  # Scala + sbt
101
  # -----------------------------
102
  # Install dependencies
103
+ RUN apt-fast install -y curl gnupg software-properties-common apt-transport-https
104
 
105
  # Add SBT repository and key
106
  RUN curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x99E82A75642AC823" | gpg --dearmor | tee /usr/share/keyrings/sbt.gpg > /dev/null \
 
108
  && echo "deb [signed-by=/usr/share/keyrings/sbt.gpg] https://repo.scala-sbt.org/scalasbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
109
 
110
  # Install Scala + SBT
111
+ RUN apt-fast update && apt-fast install -y scala sbt
112
 
113
  # -----------------------------
114
  # code-server
 
156
  mysql-client \
157
  postgresql-client \
158
  redis-tools \
159
+ gnupg wget ca-certificates
 
160
 
161
  # Install MongoDB Database Tools (mongo, mongodump, etc.)
162
  RUN wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb.gpg \
163
  && echo "deb [signed-by=/usr/share/keyrings/mongodb.gpg] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" \
164
  | tee /etc/apt/sources.list.d/mongodb-org-7.0.list \
165
+ && apt-fast update && apt-fast install -y mongodb-database-tools
 
166
 
167
  # More build tools
168
  RUN apt-fast install -y \
169
  autoconf automake libtool m4 \
170
  ninja-build \
171
  nasm yasm \
172
+ graphviz doxygen
173
 
174
  # Productivity + Debug
175
  RUN apt-fast install -y \
176
  tmux screen neovim \
177
  httpie \
178
  shellcheck \
179
+ man-db manpages-dev
180
 
181
  # Removing cache
182
  RUN apt-fast clean
 
235
  # -----------------------------
236
  # Entrypoint: restore + code-server
237
  # -----------------------------
 
238
  EXPOSE 7860
239
 
240
  CMD /bin/bash -c "code-server --bind-addr 0.0.0.0:7860 --auth password /home/vscode/workspace"