Enhance Docker Setup with User Management, Logging, and Startup Script

This commit enhances the Docker setup by:
- Creating a dedicated programmer user with UID 1000
- Adding logrotate for log management
- Updating the Dockerfile to use the new user and expose port 7860
- Adding a startup script to manage MCP server and Open Code processes
- Updating the Makefile to include interactive mode and container naming
- Configuring log rotation for server logs
This commit is contained in:
2026-01-28 16:56:35 +01:00
parent bc66c794a5
commit 62b53f26f0
4 changed files with 55 additions and 5 deletions

View File

@@ -5,7 +5,8 @@ IMAGE_NAME = pmo_crazy_coder
TAG = latest
PORT = 7860
SANDBOX_VOLUME = "./bac_a_sable"
DOCKER_RUN_COMMON = --rm -p $(PORT):$(PORT) -v $(SANDBOX_VOLUME):/sandbox
CONTAINER_NAME = $(IMAGE_NAME)
DOCKER_RUN_COMMON = --rm -p $(PORT):$(PORT) -v $(SANDBOX_VOLUME):/sandbox --name $(CONTAINER_NAME)
FULL_IMAGE_NAME = $(IMAGE_NAME):$(TAG)
all: run
@@ -25,6 +26,7 @@ build: stamp/build_PMOCrazyCoder
run: build $(SANDBOX_VOLUME)
@echo Launching the PMOCrazyCoder MCP server
@docker run $(DOCKER_RUN_COMMON) \
-it \
$(FULL_IMAGE_NAME)
debug: build $(SANDBOX_VOLUME)