v1 - basic functionality

This commit is contained in:
2026-04-11 09:26:46 -04:00
commit 243b84946f
5 changed files with 166 additions and 0 deletions

25
Dockerfile Normal file
View File

@ -0,0 +1,25 @@
FROM node:22-slim
# Install runtime dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
ca-certificates \
git \
ripgrep \
bash \
&& rm -rf /var/lib/apt/lists/*
# Create a non-root user with a real home directory
RUN useradd -m -s /bin/bash -u 1001 coder
# Ensure ~/.local/bin is on PATH (where the native installer puts the binary)
ENV PATH="/home/coder/.local/bin:/home/coder/.claude/bin:${PATH}"
# Copy entrypoint (as root, then lock down)
COPY --chmod=755 entrypoint.sh /usr/local/bin/entrypoint.sh
USER coder
WORKDIR /code
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["bash"]