-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP - compile native image, build docker image.
- Loading branch information
1 parent
4749ac0
commit 971a715
Showing
2 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
# Build stage | ||
FROM ghcr.io/graalvm/graalvm-community:22 as build | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
RUN ./gradlew nativeCompile --no-configuration-cache | ||
|
||
# Runtime stage | ||
FROM scratch | ||
|
||
COPY --from=build /app/build/native/nativeCompile/kstreamlined-backend /app | ||
COPY build/native/nativeCompile/kstreamlined-backend /app/kstreamlined-backend | ||
|
||
ENTRYPOINT ["/app/"] | ||
ENTRYPOINT ["/app/kstreamlined-backend"] | ||
|
||
EXPOSE 8000 |