28 lines
718 B
Docker
28 lines
718 B
Docker
#
|
|
# add openjdk 11 and basex on code-server docker image
|
|
# @author Andy Bunce
|
|
|
|
# custom options
|
|
#COPY .basex /srv/basex/
|
|
|
|
# Main image
|
|
FROM ghcr.io/linuxserver/code-server:4.0.1
|
|
LABEL author="Andy Bunce"
|
|
LABEL company="Quodatum Ltd"
|
|
LABEL maintainer="quodatum@gmail.com"
|
|
|
|
# Install OpenJDK-11
|
|
RUN apt-get update && \
|
|
apt-get install -y openjdk-11-jdk-headless zip;
|
|
|
|
# Fix certificate issues
|
|
RUN apt-get update && \
|
|
apt-get install ca-certificates-java && \
|
|
apt-get clean && \
|
|
update-ca-certificates -f;
|
|
|
|
# Setup JAVA_HOME -- useful for docker commandline
|
|
#ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
|
|
#RUN export JAVA_HOME
|
|
|
|
RUN curl https://files.basex.org/releases/9.6.4/BaseX964.zip | jar xv
|