Update Java to 11

This commit is contained in:
Simon Detheridge 2021-06-21 10:57:16 +01:00
parent fe27b4b729
commit 9ef4d1ee5c

View file

@ -1,6 +1,6 @@
# Dockerfile for git-bridge # Dockerfile for git-bridge
FROM maven:3-jdk-8 as base FROM maven:3-jdk-11 as base
RUN apt-get update && apt-get install -y make git \ RUN apt-get update && apt-get install -y make git \
&& rm -rf /var/lib/apt/lists && rm -rf /var/lib/apt/lists
@ -23,7 +23,7 @@ RUN make package \
-name 'writelatex-git-bridge*jar-with-dependencies.jar' \ -name 'writelatex-git-bridge*jar-with-dependencies.jar' \
-exec mv {} /git-bridge.jar \; -exec mv {} /git-bridge.jar \;
FROM openjdk:8-jre FROM openjdk:11-jre
RUN apt-get update && apt-get install -y git sqlite3 \ RUN apt-get update && apt-get install -y git sqlite3 \
&& rm -rf /var/lib/apt/lists && rm -rf /var/lib/apt/lists