# Use the official AdoptOpenJDK for a base image. # https://hub.docker.com/_/openjdk FROM openjdk:8-slim WORKDIR /app ARG PROVIDER_NAME ENV PROVIDER_NAME $PROVIDER_NAME # Copy the jar to the production image from the builder stage. COPY provider/schema-${PROVIDER_NAME}/target/os-schema-${PROVIDER_NAME}-*-spring-boot.jar schema.jar # Run the web service on container startup. CMD java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${PORT} -jar /app/schema.jar