Dockerfile updates
This commit is contained in:
parent
565e8a3b1e
commit
8833905325
|
@ -26,8 +26,6 @@ RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} c
|
||||||
######################################## Run Stage ########################################
|
######################################## Run Stage ########################################
|
||||||
FROM eclipse-temurin:21-jre-alpine
|
FROM eclipse-temurin:21-jre-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
ARG PROFILE
|
ARG PROFILE
|
||||||
ARG REVISION
|
ARG REVISION
|
||||||
ENV SERVER_PORT=8080
|
ENV SERVER_PORT=8080
|
||||||
|
@ -35,4 +33,4 @@ EXPOSE ${SERVER_PORT}
|
||||||
|
|
||||||
COPY --from=build-stage /build/web/target/web-${REVISION}.jar /app.jar
|
COPY --from=build-stage /build/web/target/web-${REVISION}.jar /app.jar
|
||||||
|
|
||||||
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=${PROFILE}", "-Dspring.config.additional-location=/files/config/", "-cp", "/app/app.jar", "-Dloader.path=/files/repo-jars", "org.springframework.boot.loader.PropertiesLauncher"]
|
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=${PROFILE}", "-Dspring.config.additional-location=file:/config/", "-jar", "/app/app.jar"]
|
|
@ -4,6 +4,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>eu.eudat</groupId>
|
<groupId>eu.eudat</groupId>
|
||||||
<artifactId>dmp-backend</artifactId>
|
<artifactId>dmp-backend</artifactId>
|
||||||
|
<name>OpenDMP Backend Parent</name>
|
||||||
<version>${revision}</version>
|
<version>${revision}</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
@ -293,6 +294,19 @@
|
||||||
</property>
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>cite-dev</id>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>cite-maven</id>
|
||||||
|
<name>CITE Maven Repository</name>
|
||||||
|
<url>https://crepo.cite.gr/repository/cite-maven/</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
Loading…
Reference in New Issue