Files
neuhauss cd07bf16cf
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
add entrypoint script to decrypt secrets on application startup with key provided as env
2026-01-23 12:32:53 +01:00

28 lines
555 B
Docker

# ---------- BUILD STAGE ----------
FROM maven:3.9.6-eclipse-temurin-21 AS build
WORKDIR /app
COPY . .
RUN mvn clean package -DskipTests
# ---------- RUNTIME STAGE ----------
FROM eclipse-temurin:21-jdk
WORKDIR /app
# JAR aus dem Build-Stage kopieren
COPY --from=build /app/target/*SNAPSHOT.jar app.jar
# Port freigeben
EXPOSE 8080
# Copy entrypoint script
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
# Copy secrets
COPY secrets/ ./secrets/
# Start entrypoint first for key decryption
ENTRYPOINT ["./entrypoint.sh"]