[mod] code-serverx
This commit is contained in:
parent
86d3372950
commit
18ada45a5c
@ -1,12 +1,12 @@
|
||||
# A code-server image with added
|
||||
# openjdk@11
|
||||
# BaseX installed@9.7.3
|
||||
# openjdk@17
|
||||
# BaseX installed@10.4
|
||||
# @author Andy Bunce
|
||||
# Bugs:
|
||||
# hardcoded for amd64
|
||||
|
||||
# Main image
|
||||
FROM ghcr.io/linuxserver/code-server:4.5.1
|
||||
FROM ghcr.io/linuxserver/code-server:latest
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG BUILDARCH
|
||||
@ -16,9 +16,9 @@ LABEL author="Andy Bunce"
|
||||
LABEL company="Quodatum Ltd"
|
||||
LABEL maintainer="quodatum@gmail.com"
|
||||
|
||||
# Install OpenJDK-11
|
||||
# Install OpenJDK-17
|
||||
RUN apt-get update && \
|
||||
apt-get install -y openjdk-11-jdk-headless;
|
||||
apt-get install -y openjdk-17-jdk-headless;
|
||||
|
||||
# Fix certificate issues
|
||||
RUN apt-get update && \
|
||||
@ -27,23 +27,23 @@ RUN apt-get update && \
|
||||
update-ca-certificates -f;
|
||||
|
||||
# Setup JAVA_HOME -- useful for docker commandline
|
||||
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
|
||||
ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64/
|
||||
RUN export JAVA_HOME
|
||||
|
||||
# install BaseX to /basex/
|
||||
RUN curl https://files.basex.org/releases/9.7.3/BaseX973.zip | jar xv && \
|
||||
RUN curl https://files.basex.org/releases/10.4/BaseX104.zip | jar xv && \
|
||||
chown -R $PUID:$PGID /basex && chmod a+x /basex/bin/* ;
|
||||
ENV PATH=$PATH:/basex/bin
|
||||
|
||||
# install docker cli only
|
||||
RUN curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.17.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;
|
||||
|
||||
# install maven
|
||||
RUN curl https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.tar.gz | \
|
||||
RUN curl https://dlcdn.apache.org/maven/maven-3/3.9.0/binaries/apache-maven-3.9.0-bin.tar.gz | \
|
||||
tar zxv -C /usr/local/bin && \
|
||||
cd /usr/local/bin && \
|
||||
ln -s apache-maven-3.8.6 maven
|
||||
ln -s apache-maven-3.9.0 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/
|
||||
|
Loading…
Reference in New Issue
Block a user