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:
ajmallesh
2026-01-12 14:37:29 -08:00
parent 05f8e2382c
commit cbb2b4acc0
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -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
+1 -1
View File
@@ -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: