| # debian.sh --arch 'amd64' out/ 'trixie' '@1791158400' |
| ENV TZ=Europe/Berlin |
| ENV LANG=de_DE.utf8 |
| RUN /bin/sh -c apt update && apt install -y --no-install-recommends bash-completion curl git libc-bin less locales openssh-client python3 python3-pip python3-venv tzdata util-linux vim && localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8 && ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata && rm -rf /var/lib/apt/lists/* # buildkit |
| COPY skel/.??* /etc/skel/ # buildkit |
| RUN /bin/sh -c cp /etc/skel/.??* /root/ # buildkit |
| RUN /bin/sh -c groupadd -o -g 0 appuser && useradd -l -o -u 0 -g appuser -m -N -s /bin/bash -c "App User" appuser && mkdir -p /appdata # buildkit |
| RUN /bin/sh -c python3 -m venv /opt/ansible-tools && /opt/ansible-tools/bin/pip install --no-cache-dir --upgrade pip && /opt/ansible-tools/bin/pip install --no-cache-dir ansible-dev-tools netaddr # buildkit |
| ENV PATH=/opt/ansible-tools/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV TERM=xterm-256color |
| ENV SSH_AUTH_SOCK=/run/ssh-agent.sock |
| COPY entrypoint.sh /usr/local/bin/entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod 755 /usr/local/bin/entrypoint.sh # buildkit |
| WORKDIR /appdata |
| USER appuser |
| ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |
| CMD ["sleep" "infinity"] |