Difference between revisions of "Docker Best Practices"
From Gcube Wiki
Manuele.simi (Talk | contribs) (→Dockerfile) |
Manuele.simi (Talk | contribs) |
||
Line 20: | Line 20: | ||
= What to Package = | = What to Package = | ||
What do we put inside a Docker image. | What do we put inside a Docker image. | ||
+ | |||
+ | |||
+ | ''Back to the [[Docker_Guide_for_gCube_Users | Docker guide]].'' | ||
+ | |||
+ | [[Category:Docker]] |
Revision as of 14:09, 16 August 2020
Contents
Dockerfile
Use Metadata Labels
Define the Maintainers
Which Users inside the Image
Define the App Name
Define the WORKDIR
Use COPY instead of ADD
Sensitive Information
Never add passwords, hostnames, externals paths, tokens, and keys into images. Use a .dockerignore
file to avoid a hazardous COPY instruction, which pulls in sensitive information from the build context.
Minimize the Image Size
What to Package
What do we put inside a Docker image.
Back to the Docker guide.