Skip to content

Commit

Permalink
Use JDK image instead of JRE
Browse files Browse the repository at this point in the history
JRE image leads to startup error
Failed to init Reactor's debug agent
No compatible attachment provider is available (ByteBuddy)
  • Loading branch information
Brutus5000 committed Jun 15, 2021
1 parent 3b4f05a commit 0c0d396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM adoptopenjdk/openjdk16:alpine-jre as builder
FROM adoptopenjdk/openjdk16:alpine as builder
WORKDIR /application
ARG JAR_FILE=build/libs/faf-java-api-*.jar
COPY ${JAR_FILE} application.jar
RUN java -Djarmode=layertools -jar application.jar extract

FROM adoptopenjdk/openjdk16:alpine-jre
FROM adoptopenjdk/openjdk16:alpine
VOLUME /tmp
WORKDIR /application
COPY --from=builder /application/dependencies/ ./
Expand Down

0 comments on commit 0c0d396

Please sign in to comment.