Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
and-mora committed Nov 18, 2024
1 parent f5764c6 commit f0cd91a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ 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

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
Expand Down

0 comments on commit f0cd91a

Please sign in to comment.