Hacker News new | ask | show | jobs
by drowsspa 1234 days 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/