Spaces:
Build error
Build error
Download src/main/docker/Dockerfile.native from dalabsai/da-policyengine-dev: direct link, hf CLI and curl.
- Browser
- Download file 554 Bytes
-
https://huggingface.co/spaces/dalabsai/da-policyengine-dev/resolve/refs%2Fpr%2F1/src/main/docker/Dockerfile.native
- Command line
-
hf download hf://spaces/dalabsai/da-policyengine-dev@refs/pr/1/src/main/docker/Dockerfile.native
-
curl -L -o Dockerfile.native https://huggingface.co/spaces/dalabsai/da-policyengine-dev/resolve/refs%2Fpr%2F1/src/main/docker/Dockerfile.native
554 Bytes
| # GraalVM Native Image - Ultra-fast startup, tiny size | |
| # Expected size: ~50-80MB, startup <100ms | |
| # Note: Requires native compilation support in Spring Boot | |
| # Stage 1: Native compilation | |
| FROM ghcr.io/graalvm/graalvm-ce:ol9-java21 as native-builder | |
| WORKDIR /app | |
| # Install native-image | |
| RUN gu install native-image | |
| # Copy source and build native executable | |
| COPY . . | |
| RUN ./gradlew nativeCompile | |
| # Stage 2: Minimal runtime | |
| FROM scratch | |
| COPY --from=native-builder /app/build/native/nativeCompile/app /app | |
| EXPOSE 8080 | |
| ENTRYPOINT ["/app"] | |