Skip to content

Commit

Permalink
update Dockerfile to JDK11, add jaxb since the corresponding module h…
Browse files Browse the repository at this point in the history
…as been removed
  • Loading branch information
cbellone committed Sep 25, 2018
1 parent 08f2f7e commit 5470424
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ dependencies {
exclude group: "org.eclipse.jetty.websocket", module:"javax-websocket-server-impl"
exclude module : 'spring-boot-starter-logging'
}

runtime "org.glassfish.jaxb:jaxb-runtime:2.4.0-b180830.0438" //temporary for JDK11
}

// -- license configuration
Expand Down
4 changes: 2 additions & 2 deletions src/main/dist/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

# Pull base image.
FROM openjdk:10
FROM openjdk:11

RUN useradd -ms /bin/bash -u 1001 alfio
RUN apt-get update \
Expand All @@ -21,6 +21,6 @@ RUN mkdir /home/alfio/logs
ENV ALFIO_LOG_STDOUT_ONLY=true
ENV ALFIO_JAVA_OPTS=""

CMD java $ALFIO_JAVA_OPTS --add-modules java.xml.bind,jdk.scripting.nashorn -jar /home/alfio/alfio-boot.war
CMD java $ALFIO_JAVA_OPTS --add-modules jdk.scripting.nashorn -jar /home/alfio/alfio-boot.war

EXPOSE 8080

0 comments on commit 5470424

Please sign in to comment.