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"]
|
11
README.md
Normal file
11
README.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# SwisssignChallenge
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- [GraalVM 23](https://www.graalvm.org/)
|
||||||
|
|
||||||
|
## Build native executable
|
||||||
|
|
||||||
|
1. Make sure your `JAVA_HOME` or `GRAALVM_HOME` environment variable is correctly
|
||||||
|
pointing to your JDK.
|
||||||
|
1. Run `./mvnw -Pnative native:compile`.
|
Reference in New Issue
Block a user