FROM apache/skywalking-java-agent:9.1.0-java8 LABEL authors="yovinchen" ARG APP_NAME="service-sys" ARG JAR_FILE="${APP_NAME}.jar" ARG WORK_PATH="/skywalking" ENV JAR_FILE=${JAR_FILE} ENV SW_AGENT_NAME=${APP_NAME} ENV SW_AGENT_COLLECTOR_BACKEND_SERVICES="10.211.55.50:11800" RUN rm /skywalking/agent/plugins/apm-cxf-* \ /skywalking/agent/plugins/apm-dubbo-* \ /skywalking/agent/plugins/apm-grizzly-* \ /skywalking/agent/plugins/apm-grpc-* \ /skywalking/agent/plugins/apm-h2-* \ /skywalking/agent/plugins/apm-hbase-* \ /skywalking/agent/plugins/apm-mongodb-* \ /skywalking/agent/plugins/apm-netty-socketio-* \ /skywalking/agent/plugins/apm-nutz-http-* \ /skywalking/agent/plugins/apm-play-* \ /skywalking/agent/plugins/apm-rocketmq-* \ /skywalking/agent/plugins/micronaut-http-client-* \ /skywalking/agent/plugins/micronaut-http-server-* \ /skywalking/agent/plugins/websphere-liberty-* \ /skywalking/agent/plugins/graphql-* \ /skywalking/agent/plugins/motan-* \ /skywalking/agent/plugins/nats-* \ /skywalking/agent/plugins/sofa-rpc-* \ /skywalking/agent/plugins/thrift-* COPY ./target/$JAR_FILE $JAR_FILE WORKDIR $WORK_PATH ENTRYPOINT exec java -jar $JAR_FILE