mirror of https://github.com/grpc/grpc-java.git
23 lines
588 B
Docker
23 lines
588 B
Docker
# 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"]
|