37 lines
982 B
Docker
37 lines
982 B
Docker
FROM ubuntu:24.04@sha256:786a8b558f7be160c6c8c4a54f9a57274f3b4fb1491cf65146521ae77ff1dc54
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
python3 \
|
|
python3-pip \
|
|
python3-venv \
|
|
python3-full \
|
|
git \
|
|
curl \
|
|
jq \
|
|
nodejs \
|
|
npm \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN useradd -m -s /bin/bash testuser
|
|
|
|
# Install Claude Code (as testuser so it's accessible at runtime)
|
|
USER testuser
|
|
RUN curl -fsSL https://claude.ai/install.sh | bash
|
|
USER root
|
|
ENV PATH="/home/testuser/.local/bin:$PATH"
|
|
|
|
# Upgrade pip system-wide
|
|
RUN python3 -m pip install --upgrade pip --break-system-packages 2>/dev/null || true
|
|
|
|
USER testuser
|
|
RUN mkdir -p /home/testuser/Projects /home/testuser/.claude
|
|
WORKDIR /home/testuser/Projects
|
|
|
|
ENV HOME=/home/testuser
|
|
ENV PATH="/home/testuser/.local/bin:$PATH"
|
|
|
|
RUN echo 'export HOME=/home/testuser' >> /home/testuser/.bashrc && \
|
|
echo 'export PATH="$HOME/.local/bin:$PATH"' >> /home/testuser/.bashrc
|