- 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>
22 lines
445 B
Smarty
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:
|