3 ms·
I generally put a Dockerfile.dev that creates a user with the same GID and UID as my own (injected through environment variables): RUN adduser -u $UID...
by drowsspa 4y ago
I generally put a Dockerfile.dev that creates a user with the same GID and UID as my own (injected through environment variables):
RUN adduser -u $UID...
USER node
Then in the docker-compose you bind mount your current directory.
volumes:
- ./:/app/