-
-
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.
Remove
march=native
. Build executable outside.
- Loading branch information
1 parent
000ac53
commit dc064ee
Showing
3 changed files
with
8 additions
and
19 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,15 +1,5 @@ | ||
# Build stage | ||
FROM ghcr.io/graalvm/graalvm-community:22 AS build | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN ./gradlew nativeCompile --no-configuration-cache | ||
|
||
# Runtime stage | ||
FROM ubuntu:latest | ||
|
||
COPY --from=build /app/build/native/nativeCompile/kstreamlined-backend /app/kstreamlined-backend | ||
COPY build/native/nativeCompile/kstreamlined-backend /app/kstreamlined-backend | ||
|
||
ENTRYPOINT ["/app/kstreamlined-backend"] |
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 |
---|---|---|
|
@@ -36,7 +36,6 @@ graalvmNative { | |
resources.autodetect() | ||
buildArgs( | ||
"-R:MaxHeapSize=100m", | ||
"-march=native", | ||
) | ||
} | ||
} | ||
|