From f4e4a434087f2162ff9ab02483c503a4ad144808 Mon Sep 17 00:00:00 2001 From: Clivia <132346501+Yanyutin753@users.noreply.github.com> Date: Fri, 16 Feb 2024 22:41:50 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfiles/Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfiles/Dockerfile b/Dockerfiles/Dockerfile index 7a5eef8..0e0bb0e 100644 --- a/Dockerfiles/Dockerfile +++ b/Dockerfiles/Dockerfile @@ -14,16 +14,12 @@ RUN chmod +x mvnw RUN ./mvnw --no-transfer-progress native:compile -Pnative # Use a lightweight Linux base image with just enough runtime dependencies -FROM alpine:latest +FROM container-registry.oracle.com/graalvm/native-image:21-ol8 # Expose port 8080 for the application EXPOSE 8080 -# Copy the native executable into the container -COPY --from=builder /build/target/gpt-4-copilot /app - -RUN chmod +x /app - -# Set the entry point to run your application -ENTRYPOINT ["/app"] +Copy the native executable into the containers +COPY --from=builder /build/target/gpt-4-copilot app +ENTRYPOINT ["/app"]