FROM openjdk:11.0.13-jre WORKDIR /app ADD api/build/libs/databasir.jar /app/databasir.jar EXPOSE 8080 #-Ddatabasir.datasource.username=${databasir.datasource.username} #-Ddatabasir.datasource.password=${databasir.datasource.password} #-Ddatabasir.datasource.url=${databasir.datasource.url} ENTRYPOINT ["sh", "-c","java -Ddatabasir.db.url=${DATABASIR_DB_URL} -Ddatabasir.db.username=${DATABASIR_DB_USERNAME} -Ddatabasir.db.password=${DATABASIR_DB_PASSWORD} -jar /app/databasir.jar"]