Skip to content

Commit 26a37b7

Browse files
authored
Merge pull request #10395 from haraldatbmw/master
Dockerfile.native - write access to /work directory
2 parents 886b654 + ca5fd33 commit 26a37b7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

devtools/platform-descriptor-json/src/main/resources/templates/dockerfile-native.ftl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
###
1717
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1
1818
WORKDIR /work/
19+
RUN chown 1001 /work \
20+
&& chmod "g+rwX" /work \
21+
&& chown 1001:root /work
1922
COPY --chown=1001:root ${build_dir}/*-runner /work/application
2023

2124
EXPOSE 8080

independent-projects/tools/devtools-common/src/test/resources/templates/dockerfile-native.ftl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
###
1717
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1
1818
WORKDIR /work/
19+
RUN chown 1001 /work \
20+
&& chmod "g+rwX" /work \
21+
&& chown 1001:root /work
1922
COPY --chown=1001:root ${build_dir}/*-runner /work/application
2023

2124
EXPOSE 8080

0 commit comments

Comments
 (0)