Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: