FROM openjdk:17.0.1-slim WORKDIR /app COPY ./build/libs/****-docker.jar /app/ COPY --from=*****.live.dynatrace.com/linux/oneagent-codemodules:java / / ENV LD_PRELOAD /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so RUN chmod +x /opt/dynatrace ENV DT_TENANT=***** ENV DT_TENANTTOKEN=*** ENV DT_CONNECTION_POINT="***" ENV DT_LOGSTREAM=true ENV DT_LOGSTREAM_CAPTURE_ENABLED=true ENV DT_LOGSTREAM_CAPTURE_STDOUT=true ENV DT_DEBUG_LOG=true ENV DT_LOGLEVELCON=FINEST ENV DT_LOGSTREAM_LOG_LEVEL=FINEST CMD ["java", "-jar", "***-docker.jar"