FROM apache/skywalking-java-agent:9.1.0-java8 LABEL authors="yovinchen" LABEL name="service-gateway" ARG APP_NAME="service-gateway" 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-armeria-* \ /skywalking/agent/plugins/apm-cxf-* \ /skywalking/agent/plugins/apm-dubbo-* \ /skywalking/agent/plugins/apm-elasticsearch-* \ /skywalking/agent/plugins/apm-feign-* \ /skywalking/agent/plugins/apm-grizzly-* \ /skywalking/agent/plugins/apm-grpc-* \ /skywalking/agent/plugins/apm-h2-* \ /skywalking/agent/plugins/apm-hbase-* \ /skywalking/agent/plugins/apm-httpclient-* \ /skywalking/agent/plugins/apm-httpClient-* \ /skywalking/agent/plugins/apm-mongodb-* \ /skywalking/agent/plugins/apm-mysql-* \ /skywalking/agent/plugins/apm-netty-socketio-* \ /skywalking/agent/plugins/apm-nutz-http-* \ /skywalking/agent/plugins/apm-nutz-mvc-annotation-* \ /skywalking/agent/plugins/apm-okhttp-* \ /skywalking/agent/plugins/apm-play-* \ /skywalking/agent/plugins/apm-rocketmq-* \ /skywalking/agent/plugins/apm-spring-cloud-feign-* \ /skywalking/agent/plugins/apm-spring-core-patch-* \ /skywalking/agent/plugins/apm-springmvc-annotation-* \ /skywalking/agent/plugins/apm-tomcat-* \ /skywalking/agent/plugins/apm-xxl-job-* \ /skywalking/agent/plugins/micronaut-http-client-* \ /skywalking/agent/plugins/micronaut-http-server-* \ /skywalking/agent/plugins/spring-webflux-5.x-webclient-* \ /skywalking/agent/plugins/websphere-liberty-* \ /skywalking/agent/plugins/graphql-* \ /skywalking/agent/plugins/jedis-* \ /skywalking/agent/plugins/jsonrpc4j-* \ /skywalking/agent/plugins/motan-* \ /skywalking/agent/plugins/nats-* \ /skywalking/agent/plugins/okhttp-* \ /skywalking/agent/plugins/sofa-rpc-* \ /skywalking/agent/plugins/thrift-* RUN cp /skywalking/agent/optional-plugins/apm-spring-cloud-gateway-*.jar /skywalking/agent/plugins/ COPY ./target/$JAR_FILE $JAR_FILE WORKDIR $WORK_PATH ENTRYPOINT exec java -jar $JAR_FILE