FROM node:20-slim

RUN apt-get update && apt-get install -y \
    python3 python3-pip python3-venv \
    git curl jq \
    && rm -rf /var/lib/apt/lists/*

RUN useradd -m -s /bin/bash builder

WORKDIR /workspace
RUN chown builder:builder /workspace

RUN mkdir -p /artifacts && chown builder:builder /artifacts

USER builder
CMD ["/bin/bash"]
