Skip to content

Commit e6e2949

Browse files
committed
reduce size
1 parent 97a3ad5 commit e6e2949

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

nifi/Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ RUN curl 'https://repo.stackable.tech/repository/m2/tech/stackable/nifi/stackabl
5959
# Remove the unzipped sources
6060
rm -rf /stackable/nifi-${PRODUCT}-src && \
6161
# Remove generated docs in binary
62-
rm -rf /stackable/nifi-${PRODUCT}/docs
62+
rm -rf /stackable/nifi-${PRODUCT}/docs && \
63+
# Set correct groups
64+
chmod -R g=u /stackable
6365

6466
FROM stackable/image/java-base AS final
6567

@@ -102,11 +104,6 @@ pip install --no-cache-dir \
102104
# For backwards compatibility we create a softlink in /bin where the jar used to be as long as we are root
103105
# This can be removed once older versions / operators using this are no longer supported
104106
ln -s /stackable/stackable-bcrypt.jar /bin/stackable-bcrypt.jar
105-
106-
# All files and folders owned by root group to support running as arbitrary users.
107-
# This is best practice as all container users will belong to the root group (0).
108-
chown -R ${STACKABLE_USER_UID}:0 /stackable
109-
chmod -R g=u /stackable
110107
EOF
111108

112109
# ----------------------------------------

0 commit comments

Comments
 (0)