Dockerfile.cloudbuild 513 Bytes
Newer Older
Mykola Zamkovyi (EPAM)'s avatar
Mykola Zamkovyi (EPAM) committed
1
2
3
4
5
6
7
8
9
10
11
12
# 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
ARG PORT
ENV PORT $PORT
# Copy the jar to the production image from the builder stage.
COPY provider/backup-${PROVIDER_NAME}/target/backup-${PROVIDER_NAME}-*.jar backup-${PROVIDER_NAME}.jar
# Run the web service on container startup.
CMD java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${PORT} -jar /app/backup-${PROVIDER_NAME}.jar
Mykola Zamkovyi (EPAM)'s avatar
Mykola Zamkovyi (EPAM) committed
13