You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 20, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 20, 2018. It is now read-only.
# Use high uid/gid to avoid collisions with the hostRUN groupadd --gid 25000 app && useradd --uid 25000 --gid 25000 --create-home --shell /bin/bash app
...folowed by this just before CMD:
USER app
...and also modifying onbuild to use e.g. /home/app/src as base.
@pesho I'll give it a shot sometimes next week as I actually need this for a customer.
Feel free to assign it to me or simply wait for a PR when it is ready enough.
yosifkit commented on Feb 16
I think the hardest part here is that this still doesn't cover the developer that wants to bind mount in their code so that they can edit it on their host machine and see changes as they develop using something like node-supervisor (ex: docker run -it --rm -v /my/code:/usr/src/app my-node). That way they do not have to docker stop, docker build, and docker run for every change.
Activity
mtparet commentedon Feb 7, 2015
cf also nodejs/docker-node#1
pesho commentedon Feb 8, 2015
Something like:
...folowed by this just before
CMD:USER app...and also modifying
onbuildto use e.g./home/app/srcas base.Does this sound right?
mtparet commentedon Feb 8, 2015
Yes sounds right !
pesho commentedon Apr 3, 2015
Un-assigning this, in case anyone else wants to give it a try.
hmalphettes commentedon Apr 4, 2015
@pesho I'll give it a shot sometimes next week as I actually need this for a customer.
Feel free to assign it to me or simply wait for a PR when it is ready enough.
Starefossen commentedon Apr 4, 2015
@hmalphettes you have probably read this comment in #26, but just to make sure:
retrohacker commentedon Oct 14, 2015
User namespaces have made it into the experimental release of Docker. moby/moby#12648