Hacker News new | ask | show | jobs
by dmitryminkovsky 1238 days ago
I don't use Docker locally except for building/testing production containers. I also found them not helpful for development.

That said, I recently discovered that VS Code has a feature called "Dev Containers"[0] that ostensibly makes it easy to develop inside the same Docker container you'll be deploying. I haven't had a chance to check it out, but it seems very cool.

[0] https://code.visualstudio.com/docs/devcontainers/containers

1 comments

For the backend rails app my docker-compse mounts the work directory like so, which means I don't have to develop inside that container except for when I need to use the rails console.

    web:
      image: rubylang/ruby:3.0.1-focal
      volumes:
        - .:/myapp