-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 808 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM debian:trixie
ARG UID=1000
ARG GID=1000
RUN apt update -y && \
apt install curl git openssh-server ca-certificates -y && \
curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
apt install -y nodejs && \
rm -rf /var/lib/apt/lists/*
RUN groupadd -g ${GID} claude && \
useradd -u ${UID} -g ${GID} -ms /bin/bash claude
USER claude
WORKDIR /home/claude/project
ENV PATH="/home/claude/.local/bin:${PATH}"
RUN curl -fsSL https://claude.ai/install.sh | bash && \
echo 'export PATH="$HOME/.local/bin:$PATH"' >> /home/claude/.bashrc && \
claude --version
RUN mkdir -p /home/claude/project && \
touch /home/claude/project/.MOUNT_REQUIRED
COPY --chmod=755 entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
CMD [ "bash" ]