octobot/skills/scaffold/containerize-project/docker-compose.r.yml.tpl
lukabor 2517b1fb43 refactor(skills): extract containerize-project from build-* scaffolds
- refactor(scaffold): move Docker/compose templates and three-stage doc into
  new containerize-project skill; build-* skills delegate their Docker step
- fix(scaffold): drop source mount from the production compose service
- fix(scaffold): add .dockerignore templates so COPY . . excludes .git/.env/data
- feat(scaffold): run production stages as non-root app user; pin uv install
  via COPY --from=ghcr.io/astral-sh/uv:0.7
- docs(README): list containerize-project and add-docker-secrets; remove the
  now-empty _concepts section

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 12:49:48 +02:00

22 lines
445 B
Smarty

services:
dev:
build:
context: .
dockerfile: Dockerfile
target: development
container_name: <package-name>-dev
volumes:
- .:/usr/<package-name>
- 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: <package-name>-prod
volumes:
renv-cache: