[mod]
This commit is contained in:
parent
519069b3b0
commit
b92edfdedc
1 changed files with 6 additions and 14 deletions
|
@ -1,10 +1,6 @@
|
||||||
#
|
#
|
||||||
# add openjdk 11 and basex on code-server docker image
|
# add openjdk 11 and basex on code-server docker image
|
||||||
# @author Andy Bunce
|
# @author Andy Bunce
|
||||||
FROM alpine:latest AS builder
|
|
||||||
RUN apk --no-cache add zip
|
|
||||||
ADD https://files.basex.org/releases/9.6.4/BaseX964.zip /srv
|
|
||||||
RUN cd /srv && unzip *.zip && rm *.zip
|
|
||||||
|
|
||||||
# custom options
|
# custom options
|
||||||
#COPY .basex /srv/basex/
|
#COPY .basex /srv/basex/
|
||||||
|
@ -15,10 +11,9 @@ LABEL author="Andy Bunce"
|
||||||
LABEL company="Quodatum Ltd"
|
LABEL company="Quodatum Ltd"
|
||||||
LABEL maintainer="quodatum@gmail.com"
|
LABEL maintainer="quodatum@gmail.com"
|
||||||
|
|
||||||
# Install OpenJDK-8
|
# Install OpenJDK-11
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y openjdk-8-jdk-headless && \
|
apt-get install -y openjdk-11-jdk-headless zip;
|
||||||
apt-get clean;
|
|
||||||
|
|
||||||
# Fix certificate issues
|
# Fix certificate issues
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
|
@ -27,10 +22,7 @@ RUN apt-get update && \
|
||||||
update-ca-certificates -f;
|
update-ca-certificates -f;
|
||||||
|
|
||||||
# Setup JAVA_HOME -- useful for docker commandline
|
# Setup JAVA_HOME -- useful for docker commandline
|
||||||
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
|
#ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
|
||||||
RUN export JAVA_HOME
|
#RUN export JAVA_HOME
|
||||||
|
|
||||||
|
|
||||||
#RUN adduser -h /srv -D -u 1000 basex
|
|
||||||
COPY --from=builder --chown=1000:1000 /srv/ /srv
|
|
||||||
|
|
||||||
|
RUN curl https://files.basex.org/releases/9.6.4/BaseX964.zip | jar xv
|
||||||
|
|
Loading…
Add table
Reference in a new issue