Create README and Dockerfile but not working because of Flyway migrations. TODO: run in Testcontainers
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user