question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

use COPY --chown to stage repo (docker 17.09)

See original GitHub issue

Right now, we copy and chown the repo in two layers, which doubles the size the repo takes up in the env. This used to be required. Docker 17.09 adds support for COPY --chown to do it in one layer. So we can do this when it becomes okay to require docker 17.09 as the base version.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
yuvipandacommented, May 21, 2019

Me and @jhamman found out that version of docker used by GKE does not support this yet, so the default install of BinderHub can’t use it (since it uses the same docker as the underlying cluster)

1reaction
willingccommented, Jul 16, 2019

We have a “JupyterHub fellow”???

Read more comments on GitHub >

github_iconTop Results From Across the Web

use COPY --chown to stage repo (docker 17.09) #164 - GitHub
Right now, we copy and chown the repo in two layers, which doubles the size the repo takes up in the env. This...
Read more >
Docker Engine 17.09 release notes
Add --chown flag to ADD/COPY commands in Dockerfile moby/moby#34263; Fix cloning unneeded files while building from git repositories ...
Read more >
The backlash of chmod/chown/mv in your Dockerfile - Medium
Updating ownership on a file with chown effectively results in duplicating that file and storing its new copy in a new layer. The...
Read more >
Docker Copy and change owner - file permissions
A --chown flag has finally been added to COPY : COPY --chown=patrick hostPath containerPath. This new syntax seems to work on Docker 17.09....
Read more >
Can I avoid or cache a `usermod` and `chown` command ...
Since Docker 17.09 and up one can add the chown flag to both COPY and ADD : COPY --chown=someuser:somegroup /foo /bar ADD --chown=someuser:somegroup...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found