Skip to content

Commit

Permalink
fix: deprecated docker base image open jdk 18 (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobulcke authored Jan 15, 2024
1 parent 0308e55 commit 3d182af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ldi-nifi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG NIFI_DOCKER_IMAGE_VERSION
#
# INSTALL MAVEN DEPENDENCIES
#
FROM maven:3.8.5-openjdk-18 AS builder
FROM maven:3.8.5-amazoncorretto-17 AS builder

# MAVEN: application
FROM builder AS app-stage
Expand Down
6 changes: 3 additions & 3 deletions ldio.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# INSTALL MAVEN DEPENDENCIES
#
FROM maven:3.8.5-openjdk-18 AS builder
FROM maven:3.8.5-amazoncorretto-17 AS builder

# MAVEN: application
FROM builder AS app-stage
Expand All @@ -13,9 +13,9 @@ RUN mvn clean install -DskipTests
#
# RUN THE APPLICATION
#
FROM openjdk:18-ea-bullseye
FROM amazoncorretto:17-alpine-jdk

RUN useradd -u 2000 ldio
RUN adduser -D -u 2000 ldio
USER ldio
WORKDIR /ldio

Expand Down

0 comments on commit 3d182af

Please sign in to comment.