FROM ubuntu:latest
# Install common dependencies for GUI applications
RUN apt-get update && apt -y dist-upgrade && apt-get install -y \
    curl git \
    && rm -rf /var/lib/apt/lists/* && apt clean

USER ubuntu
ENV HOME=/home/ubuntu
# ENV USER=appuser
# # Set working directory for the user
WORKDIR $HOME
RUN ["curl", "-fsSL", "-o", "install.sh", "https://claude.ai/install.sh"]
RUN ["/bin/bash", "install.sh"]
ENV PATH="$HOME/.local/bin:$PATH"

WORKDIR /workspace
# Default command - to be overridden by user
CMD ["claude"]