test file configs

This commit is contained in:
AddictionGames
2026-01-03 18:09:39 +02:00
parent 27a261eb44
commit 9c56757742
3 changed files with 33 additions and 236 deletions

View File

@@ -18,10 +18,15 @@ WORKDIR /app
# Copy fat jar from build stage
COPY --from=build /app/target/*.jar app.jar
# Copy startup script
COPY scripts/create-secret-file.sh /app/create-secret-file.sh
RUN chmod +x /app/create-secret-file.sh
# Expose port (for local/docker-compose/documentation)
EXPOSE 8080
ENV JAVA_OPTS=""
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -jar app.jar"]
# Create secret file from env vars (for testing ConfigLoader) then start app
ENTRYPOINT ["sh", "-c", "/app/create-secret-file.sh && java $JAVA_OPTS -jar app.jar"]