-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Idea] Some tips for efficient Dockerfiles. #1
Comments
Well spotted! Yeah I will implement it in the next version of the image. I'm not 100% sure we need to assign 777 to those files, I saw that the "abc" user wouldn't access them otherwise and I was worried there could have been some issues once we change user ID and group ID. That was the easiest solution, and I wasn't too concerned about changing permissions of just those two files... What do you think? |
Who is this I am curious about the user(s) involved in this image. Who are they? I see several directories and files whose permissions are being changed to
The user executing the content of this Dockerfile is I wonder:
|
I wonder if you could achieve any efficiency gains by applying some of the tips mentioned here 🤔
For example, in this Dockerfile from your
slicer-env
, you may take advantage of the--chmod
feature of the Dockerfile instructionCOPY
(see the Docker official Dockerfile reference for more details). The following code snippet:from lines 54 and 55 would translate into:
which should reduce the number of layers and, therefore, the size of the Docker image 💡 In this particular case, it will probably not result in huge gains because of the presumably reduced size of the
slicer.desktop
file. However, it might be something to consider in other cases.The same should probably work in lines 74 and 75:
which would translate into:
PS: Is it really necessary to assign 777 permissions to those file? 🤔
The text was updated successfully, but these errors were encountered: