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.
11 lines
391 B
11 lines
391 B
FROM gradle:7.3-jdk11 as build
|
|
WORKDIR /app
|
|
ADD . /app
|
|
RUN gradle api:build
|
|
|
|
FROM openjdk:11.0.13-jre
|
|
WORKDIR /app
|
|
COPY --from=build /app/api/build/libs/databasir.jar /app/databasir.jar
|
|
EXPOSE 8080
|
|
|
|
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"]
|
|
|