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