refactor: mount plugins and config instead of baking into image

Image now contains only the derp package. Config and plugins are
bind-mounted at runtime, enabling live edits without rebuilds.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
user
2026-02-15 01:20:30 +01:00
parent 7b9cde6192
commit 830add0797
2 changed files with 2 additions and 4 deletions

View File

@@ -7,7 +7,4 @@ COPY src/ src/
RUN pip install --no-cache-dir .
COPY plugins/ plugins/
COPY config/derp.toml.example config/derp.toml.example
ENTRYPOINT ["derp"]

View File

@@ -42,9 +42,10 @@ link: install ## Symlink to ~/.local/bin
build: ## Build container image
podman build -t $(APP_NAME) .
container-run: ## Run bot in container (mount config)
container-run: ## Run bot in container (mount config + plugins)
podman run -d --name $(APP_NAME) \
-v ./config/derp.toml:/app/config/derp.toml:ro,Z \
-v ./plugins:/app/plugins:ro,Z \
$(APP_NAME)
container-stop: ## Stop and remove container