feat: update file use docker

This commit is contained in:
Richard T
2026-01-20 15:38:08 -08:00
parent adf6dabccf
commit 583f1df93b
3 changed files with 13 additions and 1 deletions
+10 -1
View File
@@ -15,9 +15,18 @@ COPY mcp_server.py ./
RUN pip install --no-cache-dir -e .
# Create non-root user for security
RUN useradd -m -u 1001 appuser && chown -R appuser:appuser /app
RUN useradd -m -u 1001 appuser
# Create workspaces directory for file system tools persistence
# This directory will be mounted as a volume
RUN mkdir -p /app/workdir/workspaces && \
chown -R appuser:appuser /app
USER appuser
# Declare volume for workspace persistence across container runs
VOLUME ["/app/workdir/workspaces"]
# Expose MCP server port
EXPOSE 4001
+1
View File
@@ -27,6 +27,7 @@ dependencies = [
"pandas>=2.0.0",
"jsonpath-ng>=1.6.0",
"fastmcp>=2.0.0",
"diff-match-patch>=20230430",
]
[project.optional-dependencies]
+2
View File
@@ -144,6 +144,7 @@ services:
- BRAVE_SEARCH_API_KEY=${BRAVE_SEARCH_API_KEY:-}
volumes:
- .:/workspace:rw # Mount project root for file access
- aden_tools_workspaces:/app/workdir/workspaces # Persist file system tool workspaces
working_dir: /workspace # Set working directory so relative paths work
command: ["python", "/app/mcp_server.py"] # Use absolute path since working_dir changed
healthcheck:
@@ -164,3 +165,4 @@ volumes:
timescaledb_data:
mongodb_data:
redis_data:
aden_tools_workspaces: