beteran-protobuf/.devcontainer/docker-compose.yml
2022-07-12 07:02:38 +00:00

33 lines
1.0 KiB
YAML

version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
UPGRADE_PACKAGES: "true"
volumes:
# Forwards the local Docker socket to the container.
- /var/run/docker.sock:/var/run/docker-host.sock
# Update this to wherever you want VS Code to mount the folder of your project
- ..:/workspace:cached
# Overrides default command so things don't shut down after the process ends.
entrypoint: /usr/local/share/docker-init.sh
command: sleep infinity
# Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
# cap_add:
# - SYS_PTRACE
# security_opt:
# - seccomp:unconfined
# Uncomment the next line to use a non-root user for all processes.
# user: vscode
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
environment:
- PROTOBUF_VERSION=3.20.0