[mod] code-serverx updated but still 1.4gb

This commit is contained in:
Andy Bunce 2023-05-24 15:30:22 +01:00
parent d7e939da1d
commit 0a96279ecc

View File

@ -1,6 +1,7 @@
# A code-server image with added
# openjdk@17
# BaseX installed@10.6
# docker build --tag=vscode4.13-basex10.6 .
# @author Andy Bunce
# Bugs:
# 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
# install docker cli only
# https://askubuntu.com/a/1388299
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt install docker-ce-cli
# https://docs.docker.com/engine/install/ubuntu/
RUN install -m 0755 -d /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
RUN chmod a+r /etc/apt/keyrings/docker.gpg
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/ && \
# cp /tmp/docker/docker /usr/local/bin && rm -r /tmp/docker;
# 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 && \
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
# install node+npm LTS see https://www.how2shout.com/linux/how-to-install-node-js-npm-on-debian-11-bullseye/