Skip to content

Commit c42afd8

Browse files
committed
Updated profile name to fully-static
1 parent 079c17f commit c42afd8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

native-image/spring-boot-webserver/Dockerfile.scratch.static

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM container-registry.oracle.com/graalvm/native-image:25-muslib AS nativebuild
22
COPY . /webserver
33
WORKDIR /webserver
44
# Build a fully static native image with optimization for size
5-
RUN ./mvnw -Dmaven.test.skip=true -Pnative,static native:compile
5+
RUN ./mvnw -Dmaven.test.skip=true -Pnative,fully-static native:compile
66

77
# Scratch-nothing
88
FROM scratch

native-image/spring-boot-webserver/Dockerfile.scratch.static-upx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN microdnf -y install wget xz && \
1313
rm -rf upx-${UPX_VERSION}-amd64_linux
1414

1515
# Build a fully static native image with optimization for size
16-
RUN ./mvnw -Dmaven.test.skip=true -Pnative,static native:compile
16+
RUN ./mvnw -Dmaven.test.skip=true -Pnative,fully-static native:compile
1717
RUN ls -lh /webserver/target
1818
# Compress with UPX
1919
RUN ./upx --lzma --best -o /webserver/webserver.static-upx /webserver/target/webserver.static

native-image/spring-boot-webserver/build-alpine-static-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
# TOOLCHAIN_DIR=${SCRIPT_DIR}/musl-toolchain
77
# PATH=${TOOLCHAIN_DIR}/bin:${PATH}
88

9-
# ./mvnw -Dmaven.test.skip=true -Pnative,static native:compile
9+
# ./mvnw -Dmaven.test.skip=true -Pnative,fully-static native:compile
1010

1111
docker build --no-cache . -f Dockerfile.alpine.static -t webserver:scratch.static-alpine

native-image/spring-boot-webserver/build-static-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# TOOLCHAIN_DIR=${SCRIPT_DIR}/musl-toolchain
77
# PATH=${TOOLCHAIN_DIR}/bin:${PATH}
88

9-
# ./mvnw -Dmaven.test.skip=true -Pnative,static native:compile
9+
# ./mvnw -Dmaven.test.skip=true -Pnative,fully-static native:compile
1010

1111
# Scratch-nothing
1212
docker build --no-cache . -f Dockerfile.scratch.static -t webserver:scratch.static

0 commit comments

Comments
 (0)