[mod] code-serverx updated but still 1.4gb
This commit is contained in:
parent
d7e939da1d
commit
0a96279ecc
1 changed files with 12 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
||||||
# A code-server image with added
|
# A code-server image with added
|
||||||
# openjdk@17
|
# openjdk@17
|
||||||
# BaseX installed@10.6
|
# BaseX installed@10.6
|
||||||
|
# docker build --tag=vscode4.13-basex10.6 .
|
||||||
# @author Andy Bunce
|
# @author Andy Bunce
|
||||||
# Bugs:
|
# Bugs:
|
||||||
# hardcoded for amd64
|
# hardcoded for amd64
|
||||||
|
@ -38,20 +39,24 @@ RUN curl https://files.basex.org/releases/10.6/BaseX106.zip | jar xv && \
|
||||||
ENV PATH=$PATH:/basex/bin
|
ENV PATH=$PATH:/basex/bin
|
||||||
|
|
||||||
# install docker cli only
|
# install docker cli only
|
||||||
# https://askubuntu.com/a/1388299
|
# https://docs.docker.com/engine/install/ubuntu/
|
||||||
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
RUN install -m 0755 -d /etc/apt/keyrings && \
|
||||||
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||||
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
RUN chmod a+r /etc/apt/keyrings/docker.gpg
|
||||||
RUN apt install docker-ce-cli
|
RUN echo \
|
||||||
|
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
|
||||||
|
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
||||||
|
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
|
RUN apt-get update && apt-get install -y docker-ce-cli
|
||||||
|
|
||||||
#RUN curl https://download.docker.com/linux/static/stable/x86_64/docker-23.0.1.tgz | tar zxv -C /tmp/ && \
|
#RUN curl https://download.docker.com/linux/static/stable/x86_64/docker-23.0.1.tgz | tar zxv -C /tmp/ && \
|
||||||
# cp /tmp/docker/docker /usr/local/bin && rm -r /tmp/docker;
|
# cp /tmp/docker/docker /usr/local/bin && rm -r /tmp/docker;
|
||||||
|
|
||||||
# install maven
|
# install maven
|
||||||
RUN curl https://dlcdn.apache.org/maven/maven-3/3.9.0/binaries/apache-maven-3.9.0-bin.tar.gz | \
|
RUN curl https://dlcdn.apache.org/maven/maven-3/3.9.2/binaries/apache-maven-3.9.2-bin.tar.gz | \
|
||||||
tar zxv -C /usr/local/bin && \
|
tar zxv -C /usr/local/bin && \
|
||||||
cd /usr/local/bin && \
|
cd /usr/local/bin && \
|
||||||
ln -s apache-maven-3.9.0 maven
|
ln -s apache-maven-3.9.2 maven
|
||||||
ENV PATH=$PATH:/usr/local/bin/maven/bin
|
ENV PATH=$PATH:/usr/local/bin/maven/bin
|
||||||
|
|
||||||
# install node+npm LTS see https://www.how2shout.com/linux/how-to-install-node-js-npm-on-debian-11-bullseye/
|
# install node+npm LTS see https://www.how2shout.com/linux/how-to-install-node-js-npm-on-debian-11-bullseye/
|
||||||
|
|
Loading…
Add table
Reference in a new issue