# Luzia Sandbox - Lightweight agent execution environment
# Agents execute inside this container as project users

FROM alpine:3.19

# Install common tools agents need
RUN apk add --no-cache \
    bash \
    git \
    curl \
    wget \
    jq \
    grep \
    sed \
    gawk \
    findutils \
    coreutils \
    diffutils \
    patch \
    openssh-client \
    nodejs \
    npm \
    python3 \
    py3-pip \
    make \
    gcc \
    g++ \
    musl-dev

# Install common Node.js tools
RUN npm install -g \
    typescript \
    ts-node \
    prettier \
    eslint

# Set workspace
WORKDIR /workspace

# Keep container alive for docker exec commands
CMD ["tail", "-f", "/dev/null"]
