Create README and Dockerfile but not working because of Flyway migrations. TODO: run in Testcontainers

This commit is contained in:
2025-01-29 20:20:39 +01:00
parent 41cdfb96aa
commit 13e9675671
2 changed files with 34 additions and 0 deletions

23
Dockerfile Normal file
View File

@ -0,0 +1,23 @@
FROM ghcr.io/graalvm/jdk-community:23 AS build
WORKDIR /app
COPY pom.xml .
COPY mvnw .
COPY .mvn ./.mvn
COPY src ./src
COPY openapi.yml .
RUN ./mvnw -Pnative native:compile
FROM alpine
WORKDIR /app
COPY --from=build /app/target/swisssign-challenge /app/swisssign-challenge
EXPOSE 8080
CMD ["./swisssign-challenge"]