services: dev: build: context: . dockerfile: Dockerfile target: development container_name: -dev volumes: - .:/usr/ - renv-cache:/root/.cache/R/renv # No source mount: production runs the baked image as built. production: build: context: . dockerfile: Dockerfile target: production container_name: -prod volumes: renv-cache: