docker: widen build context to repo root for build-time install stage

The Dockerfile will need access to chatmaild/ and cmdeploy/ source
trees to run CMDEPLOY_STAGES=install via pyinfra during image build,
moving install-time work out of container startup. The previous context
(./docker) only included helper scripts.

Also adds .dockerignore to exclude .git, data/, venv/ etc. from the
build context, and updates COPY paths accordingly.
This commit is contained in:
j4n
2026-02-13 15:03:04 +01:00
parent e20256c484
commit e5ba9f9d03
3 changed files with 13 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
services:
chatmail:
build:
context: ./docker
dockerfile: chatmail_relay.dockerfile
context: ./
dockerfile: docker/chatmail_relay.dockerfile
tags:
- chatmail-relay:latest
image: chatmail-relay:latest