docs
This commit is contained in:
+14
-5
@@ -1,16 +1,25 @@
|
||||
services:
|
||||
mcp-bash:
|
||||
build:
|
||||
context: ./server
|
||||
dockerfile: Dockerfile
|
||||
image: python:3.12-slim
|
||||
container_name: mcp-bash
|
||||
restart: unless-stopped
|
||||
working_dir: /app
|
||||
command: >
|
||||
bash -c "
|
||||
apt-get update -qq &&
|
||||
apt-get install -y --no-install-recommends
|
||||
curl wget git vim nano htop procps jq less unzip &&
|
||||
pip install -q -r requirements.txt &&
|
||||
python -u main.py"
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
# shared workspace: host files are visible inside the PTY sessions
|
||||
- ./server:/app:ro
|
||||
- ./workspace:/workspace
|
||||
- pip-cache:/root/.cache/pip
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
# tty: true keeps stdin open for ptyprocess inside the container
|
||||
tty: true
|
||||
|
||||
volumes:
|
||||
pip-cache:
|
||||
|
||||
Reference in New Issue
Block a user