mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-06-06 15:33:57 +02:00
feat: fix Docker worker container setup
- Install uv instead of deprecated uvx package - Add mcp-server and configs directories to container - Mount target repo dynamically via TARGET_REPO env variable
This commit is contained in:
@@ -12,8 +12,8 @@ RUN apk add --no-cache \
|
||||
bash \
|
||||
curl
|
||||
|
||||
# Install uvx for browser-use
|
||||
RUN pip install uvx --break-system-packages
|
||||
# Install uv (includes uvx command) for browser-use
|
||||
RUN pip install uv --break-system-packages
|
||||
|
||||
# Create non-root user
|
||||
RUN adduser -D -u 1000 pentest
|
||||
@@ -28,6 +28,8 @@ RUN npm ci --omit=dev
|
||||
# Copy application code
|
||||
COPY dist/ ./dist/
|
||||
COPY prompts/ ./prompts/
|
||||
COPY mcp-server/ ./mcp-server/
|
||||
COPY configs/ ./configs/
|
||||
|
||||
# Set ownership
|
||||
RUN chown -R pentest:pentest /app
|
||||
|
||||
@@ -25,8 +25,8 @@ services:
|
||||
temporal:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- ../deliverables:/app/deliverables
|
||||
- ../prompts:/app/prompts
|
||||
- ${TARGET_REPO:-/tmp/target-repo}:/target-repo
|
||||
shm_size: 2gb
|
||||
ipc: host
|
||||
security_opt:
|
||||
|
||||
Reference in New Issue
Block a user