fix: create /workspaces dir, clone repo before running agent

Made-with: Cursor
This commit is contained in:
2026-02-26 14:55:29 -08:00
parent 8870f2b1e0
commit 0de41a3401
3 changed files with 102 additions and 8 deletions

View File

@@ -16,8 +16,11 @@ RUN npm ci --omit=dev
# Copy compiled output (build before docker build, or use multi-stage)
COPY dist/ ./dist/
# Non-root user for security
RUN useradd -r -s /bin/false agent
# Create workspace dir and non-root user
RUN useradd -r -m -s /bin/bash agent && \
mkdir -p /workspaces && \
chown -R agent:agent /workspaces /app
USER agent
EXPOSE 3333