blob: e717b7dc52616918bdf632d046f3addb6e0aa2bd [file] [log] [blame]
# Build runtime image.
FROM eclipse-temurin:11-jre
ENV APP_DIR=/usr/src/app
WORKDIR $APP_DIR
# Install the app
COPY grpc-interop-testing/ $APP_DIR/
# Copy all logging profiles, use json logging by default
COPY logging*.properties $APP_DIR/
ENV JAVA_OPTS="-Djava.util.logging.config.file=$APP_DIR/logging-json.properties"
# Intentionally after the app COPY to force the update on each build.
# Update Ubuntu system packages:
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*
# Server
ENTRYPOINT ["bin/xds-test-server"]