nodece commented on code in PR #4464:
URL: https://github.com/apache/bookkeeper/pull/4464#discussion_r1727572469


##########
docker/Dockerfile:
##########
@@ -86,6 +86,13 @@ COPY --from=jre-build /javaruntime $JAVA_HOME
 COPY scripts /opt/bookkeeper/scripts
 RUN chmod +x -R /opt/bookkeeper/scripts/
 
+RUN chown -R 10000:0 /opt/bookkeeper
+RUN chmod -R ug+rwx /opt/bookkeeper
+RUN chmod -R g+rx /opt/bookkeeper/bin
+RUN chmod -R g+rx /opt/bookkeeper/scripts

Review Comment:
   > squashing is deprecated.
   
   Good catch! I don't know this thing, because I'm using `podman` instead of 
`docker`, so I can still use the squash feature on the podman.
   
   > what did you try?
   
   I write two dockerfiles, one is multiple stages, and the other is a single 
stage, and then use the podman to build the different dockerfile:
   ```
   cd $BK/docker
   podman build --squash --platform linux/amd64 -t zixuan/bk:0822 .
   ```
   
   
   
   
   



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