From 16afd5f5f5d81158289c268fbfdc7db097b3a827 Mon Sep 17 00:00:00 2001 From: Andrea Morabito <78792023+and-mora@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:13:27 +0100 Subject: [PATCH] chore: fix dockerfile (#13) --- src/main/docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index f02f2a1..a60583b 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -6,7 +6,7 @@ COPY . . RUN chmod +x ./gradlew && ./gradlew :nativeCompile FROM ubuntu:noble-20241011@sha256:99c35190e22d294cdace2783ac55effc69d32896daaa265f0bbedbcde4fbe3e5 AS cve -COPY --from=builder /build/target/rtd-ms-file-register*.jar . +COPY --from=builder /code/build/libs/rtp-activator-*.jar . FROM ubuntu:noble-20241011@sha256:99c35190e22d294cdace2783ac55effc69d32896daaa265f0bbedbcde4fbe3e5 AS runtime @@ -14,7 +14,7 @@ WORKDIR /work/ RUN chown 1001 /work \ && chmod "g+rwX" /work \ && chown 1001:root /work -COPY --from=builder --chown=1001:root --chmod=0755 /code/build/*-runner /work/application +COPY --from=builder --chown=1001:root --chmod=0755 /code/build/native/nativeCompile/rtp-activator /work/application RUN useradd --uid 10000 runner USER 10000