blob: e717b7dc52616918bdf632d046f3addb6e0aa2bd [file] [log] [blame]
Sergii Tkachenkoe5f57ad2020-12-23 09:52:01 -05001# Build runtime image.
Sergii Tkachenko16b84922023-05-16 18:20:55 -04002FROM eclipse-temurin:11-jre
Sergii Tkachenkoe5f57ad2020-12-23 09:52:01 -05003
4ENV APP_DIR=/usr/src/app
5WORKDIR $APP_DIR
6
7# Install the app
8COPY grpc-interop-testing/ $APP_DIR/
9
10# Copy all logging profiles, use json logging by default
11COPY logging*.properties $APP_DIR/
12ENV JAVA_OPTS="-Djava.util.logging.config.file=$APP_DIR/logging-json.properties"
13
Sergii Tkachenko16b84922023-05-16 18:20:55 -040014# Intentionally after the app COPY to force the update on each build.
15# Update Ubuntu system packages:
16RUN apt-get update \
17 && apt-get -y upgrade \
18 && apt-get -y autoremove \
19 && rm -rf /var/lib/apt/lists/*
20
Sergii Tkachenkoe5f57ad2020-12-23 09:52:01 -050021# Server
22ENTRYPOINT ["bin/xds-test-server"]