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:
@@ -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"]
|
||||
|
||||
3
Makefile
3
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user