diff --git a/Dockerfile b/Dockerfile index a2868fc93..fa457cdd7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,14 @@ FROM eclipse-temurin:19-jre-alpine + EXPOSE 8080:8080 + # run as non-root user RUN addgroup -g 1001 -S user && adduser -u 1001 -S -s /bin/false -G user user + USER user -COPY ./build/install/org.eclipse.tractusx.managedidentitywallets/ /app/ -WORKDIR /app/bin -CMD ["./org.eclipse.tractusx.managedidentitywallets"] + +COPY /build/libs/miw-latest.jar /app/ + +WORKDIR /app + +CMD ["java", "-jar", "miw-latest.jar"]