1*e07d83d3SAndroid Build Coastguard Worker# Build runtime image. 2*e07d83d3SAndroid Build Coastguard WorkerFROM eclipse-temurin:11-jre 3*e07d83d3SAndroid Build Coastguard Worker 4*e07d83d3SAndroid Build Coastguard WorkerENV APP_DIR=/usr/src/app 5*e07d83d3SAndroid Build Coastguard WorkerWORKDIR $APP_DIR 6*e07d83d3SAndroid Build Coastguard Worker 7*e07d83d3SAndroid Build Coastguard Worker# Install the app 8*e07d83d3SAndroid Build Coastguard WorkerCOPY grpc-interop-testing/ $APP_DIR/ 9*e07d83d3SAndroid Build Coastguard Worker 10*e07d83d3SAndroid Build Coastguard Worker# Copy all logging profiles, use json logging by default 11*e07d83d3SAndroid Build Coastguard WorkerCOPY logging*.properties $APP_DIR/ 12*e07d83d3SAndroid Build Coastguard WorkerENV JAVA_OPTS="-Djava.util.logging.config.file=$APP_DIR/logging-json.properties" 13*e07d83d3SAndroid Build Coastguard Worker 14*e07d83d3SAndroid Build Coastguard Worker# Intentionally after the app COPY to force the update on each build. 15*e07d83d3SAndroid Build Coastguard Worker# Update Ubuntu system packages: 16*e07d83d3SAndroid Build Coastguard WorkerRUN apt-get update \ 17*e07d83d3SAndroid Build Coastguard Worker && apt-get -y upgrade \ 18*e07d83d3SAndroid Build Coastguard Worker && apt-get -y autoremove \ 19*e07d83d3SAndroid Build Coastguard Worker && rm -rf /var/lib/apt/lists/* 20*e07d83d3SAndroid Build Coastguard Worker 21*e07d83d3SAndroid Build Coastguard Worker# Server 22*e07d83d3SAndroid Build Coastguard WorkerENTRYPOINT ["bin/xds-test-server"] 23