2022-02-08 17:38:00 +00:00
|
|
|
# A code-server image with added
|
|
|
|
# openjdk 11
|
|
|
|
# BaseX installed
|
2022-02-08 09:52:32 +00:00
|
|
|
# @author Andy Bunce
|
|
|
|
|
|
|
|
# Main image
|
2022-03-02 21:20:52 +00:00
|
|
|
FROM ghcr.io/linuxserver/code-server:4.0.2
|
2022-02-08 17:38:00 +00:00
|
|
|
|
2022-03-02 21:20:52 +00:00
|
|
|
ARG TARGETARCH
|
|
|
|
ARG BUILDARCH
|
|
|
|
RUN echo "I'm building for ${BUILDARCH} on ${TARGETARCH}
|
2022-02-08 17:38:00 +00:00
|
|
|
|
2022-02-08 09:52:32 +00:00
|
|
|
LABEL author="Andy Bunce"
|
|
|
|
LABEL company="Quodatum Ltd"
|
2022-02-08 11:11:29 +00:00
|
|
|
LABEL maintainer="quodatum@gmail.com"
|
2022-02-08 10:54:29 +00:00
|
|
|
|
2022-02-08 12:36:53 +00:00
|
|
|
# Install OpenJDK-11
|
2022-02-08 10:54:29 +00:00
|
|
|
RUN apt-get update && \
|
2022-02-08 17:38:00 +00:00
|
|
|
apt-get install -y openjdk-11-jdk-headless;
|
2022-02-08 12:36:53 +00:00
|
|
|
|
2022-02-08 10:54:29 +00:00
|
|
|
# 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
|
2022-02-08 17:38:00 +00:00
|
|
|
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
|
|
|
|
RUN export JAVA_HOME
|
|
|
|
|
2022-03-02 21:20:52 +00:00
|
|
|
# install BaseX to /basex/
|
2022-02-08 17:38:00 +00:00
|
|
|
RUN curl https://files.basex.org/releases/9.6.4/BaseX964.zip | jar xv && \
|
|
|
|
chmod a+x /basex/bin/*;
|
2022-02-08 09:52:32 +00:00
|
|
|
|
2022-02-08 18:09:35 +00:00
|
|
|
# install docker cli only
|
2022-03-02 21:20:52 +00:00
|
|
|
RUN curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.12.tgz | tar zxv -C /tmp/ && \\
|
|
|
|
cp /tmp/docker/docker /usr/local/bin && rm -r /tmp/docker;
|
2022-02-08 18:15:32 +00:00
|
|
|
|
|
|
|
# ports and volumes
|
|
|
|
EXPOSE 8443
|