S19: establish engineering repository
This commit is contained in:
13
templates/backend/Dockerfile
Normal file
13
templates/backend/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM maven:3.9-eclipse-temurin-25 AS build
|
||||
WORKDIR /workspace
|
||||
COPY . .
|
||||
RUN mvn -B -ntp -Dformat.mode=check clean verify
|
||||
FROM eclipse-temurin:25-jre AS runtime
|
||||
WORKDIR /app
|
||||
USER 10001:10001
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["java", "-jar", "/app/quarkus-run.jar"]
|
||||
FROM runtime AS prebuilt
|
||||
COPY --chown=10001:10001 backend/target/quarkus-app/ ./
|
||||
FROM runtime AS standalone
|
||||
COPY --from=build --chown=10001:10001 /workspace/backend/target/quarkus-app/ ./
|
||||
Reference in New Issue
Block a user