kevdoran commented on code in PR #6673:
URL: https://github.com/apache/nifi/pull/6673#discussion_r1025340212


##########
nifi-registry/nifi-registry-core/nifi-registry-docker/dockerhub/Dockerfile:
##########
@@ -32,13 +32,17 @@ ENV NIFI_REGISTRY_BINARY_PATH 
nifi/${NIFI_REGISTRY_VERSION}/${NIFI_REGISTRY_BINA
 ENV NIFI_REGISTRY_BINARY_URL ${MIRROR}/${NIFI_REGISTRY_BINARY_PATH}
 
 ADD sh/ ${NIFI_REGISTRY_BASE_DIR}/scripts/
+RUN chmod -R +x ${NIFI_REGISTRY_BASE_DIR}/scripts/*.sh
 
 # Setup NiFi-Registry user
 RUN groupadd -g ${GID} nifi || groupmod -n nifi `getent group ${GID} | cut -d: 
-f1` \
     && useradd --shell /bin/bash -u ${UID} -g ${GID} -m nifi \
     && chown -R nifi:nifi ${NIFI_REGISTRY_BASE_DIR} \
     && apt-get update -y \
-    && apt-get install -y curl jq xmlstarlet unzip
+    && apt-get install -y curl jq xmlstarlet unzip \
+    && apt-get -y autoremove \
+    && apt-get clean autoclean \
+    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 
 USER nifi
 

Review Comment:
   Good point. I think we could/should be using `ENTRYPOINT` everywhere.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to