1
- ARG CODE_SERVER_VERSION=4.16.1
1
+ ARG CODE_SERVER_VERSION=4.19.0
2
2
FROM ghcr.io/gsmlg/code-server:v$CODE_SERVER_VERSION
3
3
4
4
ENV CODE_SERVER_VERSION=$CODE_SERVER_VERSION
@@ -79,15 +79,11 @@ RUN git clone https://github.com/asdf-vm/asdf.git $ASDF_DIR --branch v0.12.0 \
79
79
&& echo "source $ASDF_DIR/asdf.sh" | tee -a "/etc/zsh/zshrc"
80
80
81
81
# install erlang and elixir
82
- RUN bash -c "source $ASDF_DIR/asdf.sh \
83
- && asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git \
84
- && asdf plugin add elixir https://github.com/asdf-vm/asdf-elixir.git \
85
- && asdf install erlang 26.0 \
86
- && asdf install elixir 1.15.4-otp-26 \
87
- && asdf global erlang 26.0 \
88
- && asdf global elixir 1.15.4-otp-26 \
89
- && mix local.hex --force \
90
- && mix local.rebar --force"
82
+ RUN curl -sSLf https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb -o /tmp/erlang-solutions_2.0_all.deb \
83
+ && dpkg -i /tmp/erlang-solutions_2.0_all.deb \
84
+ && apt-get update \
85
+ && apt-get install -y esl-erlang \
86
+ && apt-get install -y elixir
91
87
92
88
# install jdk
93
89
ARG ANTLR_VERSION=4.12.0
@@ -101,7 +97,7 @@ RUN apt-get install -y -qq default-jdk \
101
97
&& chmod +x /usr/local/bin/grun
102
98
103
99
# install nodejs
104
- ARG NODEJS_VERSION=18
100
+ ARG NODEJS_VERSION=20
105
101
ENV NODE_PATH=/usr/lib/node_modules
106
102
RUN curl -sL https://deb.nodesource.com/setup_${NODEJS_VERSION}.x | bash - \
107
103
&& apt-get install -y -qq nodejs \
@@ -117,7 +113,7 @@ RUN curl -sL https://deb.nodesource.com/setup_${NODEJS_VERSION}.x | bash - \
117
113
&& /usr/bin/node /usr/lib/node_modules/@openapitools/openapi-generator-cli/main.js version
118
114
119
115
# install golang
120
- ARG GO_VERSION=1.20.7
116
+ ARG GO_VERSION=1.21.4
121
117
ARG GO111MODULE=on
122
118
ARG GOPATH=/opt/go
123
119
ENV GOPATH=$GOPATH
@@ -190,7 +186,7 @@ RUN apt-get install -y -qq ruby-full && gem install bundler jekyll jekyll-remote
190
186
ARG PUB_CACHE=/opt/flutter/.pub
191
187
ENV PUB_CACHE=/opt/flutter/.pub
192
188
RUN apt-get install -y -qq clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libglu1-mesa \
193
- && aria2c -o flutter.tar.xz https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.10.6 -stable.tar.xz \
189
+ && aria2c -o flutter.tar.xz https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.13.9 -stable.tar.xz \
194
190
&& tar xf flutter.tar.xz -C /opt \
195
191
&& echo 'export PATH="/opt/flutter/bin:$PATH"' | tee -a "/etc/zsh/zshrc" \
196
192
&& echo 'export PATH="$PATH":"/opt/flutter/.pub/bin"' | tee -a "/etc/zsh/zshrc" \
@@ -222,24 +218,6 @@ RUN export ARCH=`dpkg --print-architecture`; \
222
218
&& curl -sSfL https://github.com/gsmlg-dev/gsmlg-cli/releases/latest/download/gsmlg-cli_linux_${ARCH} -o /usr/local/bin/gsmlg-cli \
223
219
&& chmod +x /usr/local/bin/gsmlg-cli
224
220
225
- # install terraform
226
- RUN export TARGET_DIR=/tmp/terraform \
227
- && git clone https://github.com/hashicorp/terraform.git $TARGET_DIR \
228
- && cd $TARGET_DIR && /usr/local/go/bin/go install \
229
- && chown -R coder:coder "${GOPATH}"
230
-
231
- # install android sdk
232
- ARG ANDROID_SDK_ROOT=/opt/android-sdk
233
- ENV ANDROID_SDK_ROOT=/opt/android-sdk
234
- RUN mkdir -p $ANDROID_SDK_ROOT \
235
- && cd $ANDROID_SDK_ROOT \
236
- && curl -sSfL https://dl.google.com/android/repository/commandlinetools-linux-10406996_latest.zip -o /tmp/cmdlinetools.zip \
237
- && unzip /tmp/cmdlinetools.zip \
238
- && yes | cmdline-tools/bin/sdkmanager --licenses --sdk_root=$ANDROID_SDK_ROOT \
239
- && echo 'export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/bin:$ANDROID_SDK_ROOT/platform-tools' | tee -a "/etc/zsh/zshrc" \
240
- && yes | cmdline-tools/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install 'cmdline-tools;latest' 'platform-tools' 'platforms;android-32' 'build-tools;32.0.0' \
241
- && yes | /opt/flutter/bin/flutter doctor --android-licenses
242
-
243
221
# change permision
244
222
RUN chown -R coder:coder /opt
245
223
0 commit comments