Skip to content
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

Permissions layer is large #2

Open
grayside opened this issue Feb 1, 2018 · 0 comments
Open

Permissions layer is large #2

grayside opened this issue Feb 1, 2018 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@grayside
Copy link
Contributor

grayside commented Feb 1, 2018

Problem

The permissions layer which reassigns several directories to ownership by the puppeteer user is 90mb per https://microbadger.com/images/outrigger/pa11y:dev.

We want to have the smallest image possible so download times and storage space are both minimized.

Solution

Wow! How can we fix that?

Combine the run statement that adds pa11y with the run statement that sets the permissions. That way there is only one layer, and the full size of the pa11y source files is not duplicated into an additional layer.

Testing

After making your changes to the Dockerfile:

  • Run ./build.sh
  • Identify the docker image from the last couple lines of build output.
  • Run docker image inspect and look for the file size, see that the size is smaller now than is reported by microbadger.
@grayside grayside added the enhancement New feature or request label Feb 1, 2018
@grayside grayside added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant