You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.0 KiB

  1. version: '3'
  2. services:
  3. docker-from-docker:
  4. # Uncomment the next line to use a non-root user for all processes.
  5. # See https://aka.ms/vscode-remote/containers/non-root for details.
  6. # user: vscode
  7. build:
  8. context: .
  9. dockerfile: Dockerfile
  10. args:
  11. # On Linux, you may need to update USER_UID and USER_GID below if not your local UID is not 1000.
  12. USER_UID: 1000
  13. USER_GID: 1000
  14. volumes:
  15. # Update this to wherever you want VS Code to mount the folder of your project
  16. - ..:/workspace:cached
  17. # Forwards the local Docker socket to the container.
  18. - /var/run/docker.sock:/var/run/docker-host.sock
  19. # Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
  20. # cap_add:
  21. # - SYS_PTRACE
  22. # security_opt:
  23. # - seccomp:unconfined
  24. # Overrides default command so things don't shut down after the process ends.
  25. entrypoint: /usr/local/share/docker-init.sh
  26. command: sleep infinity