You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
431 B
15 lines
431 B
FROM gradle:7.3-jdk11 as build
|
|
WORKDIR /app
|
|
ADD . /app
|
|
RUN gradle api:build
|
|
|
|
FROM openjdk:11.0.13-jre
|
|
ARG service_name_folder
|
|
WORKDIR /app
|
|
ADD databasir.jar /app
|
|
EXPOSE 8080
|
|
|
|
#-Ddatabasir.datasource.username=${databasir.datasource.username}
|
|
#-Ddatabasir.datasource.password=${databasir.datasource.password}
|
|
#-Ddatabasir.datasource.url=${databasir.datasource.url}
|
|
ENTRYPOINT ["sh", "-c","java ${JAVA_OPTS} -jar /app/databasir.jar"]
|
|
|