Dockerfile position geändert
Some checks failed
Productdefinitions Build & Deploy / deploy (push) Failing after 11s
Some checks failed
Productdefinitions Build & Deploy / deploy (push) Failing after 11s
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -1,20 +0,0 @@
|
||||
FROM maven:3.9-eclipse-temurin-21 AS build
|
||||
WORKDIR /productdefinitions
|
||||
|
||||
RUN git clone -b feature/Produkte --single-branch https://bitbucket.org/omds/omdsservicedefinitions.git /tmp/lib \
|
||||
&& cd /tmp/lib/OMDSServiceDefinition \
|
||||
&& mvn clean install -DskipTests
|
||||
|
||||
COPY server-app/src ./src
|
||||
COPY server-app .
|
||||
|
||||
RUN mvn clean package -DskipTests
|
||||
|
||||
FROM eclipse-temurin:21-jre-alpine
|
||||
WORKDIR /productdefinitions
|
||||
COPY --from=build /productdefinitions/server-app/target/*.jar productdefinitions.jar
|
||||
|
||||
EXPOSE 9080
|
||||
ENTRYPOINT ["java", "-jar", "productdefinitions.jar"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user