We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Dockerfiles are unnecessarily long, i.e. too many layers during build and retain build artifacts
RUN apt-get -y install git make cmake unzip RUN apt-get -y install libxrandr2 libxinerama-dev libxi6 libxcursor-dev
from rllab/docker/Dockerfile lines 27 and 33
unnecessarily large docker images -> harder to run multiple images on same machine
best practices recommend chaining / combining as many commands as possible to remove unnecessary layers
RUN apt-get update && apt-get install -y \ build-dep glfw \ libxrandr2 libxinerama-dev libxi6 libxcursor-dev \ && rm -rf /var/lib/apt/lists/*
Best practices for writing Dockerfiles
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Dockerfiles have too many layers
Problem description:
Dockerfiles are unnecessarily long, i.e. too many layers during build and retain build artifacts
Problem example:
from rllab/docker/Dockerfile lines 27 and 33
Problem Implication:
unnecessarily large docker images -> harder to run multiple images on same machine
Solution description:
best practices recommend chaining / combining as many commands as possible to remove unnecessary layers
Solution example:
Solution source:
Best practices for writing Dockerfiles
The text was updated successfully, but these errors were encountered: