FROM ghcr.io/pravorskyi/claude-code-devcontainer/devcontainer:latest

USER root

# TODO: Verify ansible-lint passes after base image update to Debian trixie
# https://github.com/anthropics/claude-code/pull/16228
# Debian 12 ansible package has older community.docker (3.4.7) missing docker_compose_v2 module
# Install Ansible, ansible-lint, and locales
RUN apt-get update && apt-get install -y --no-install-recommends \
    ansible \
    ansible-lint \
    locales \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

# Generate en_US.UTF-8 locale (required by Ansible)
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen

USER node
