Use ghcr.io/devture/ansible image

This commit is contained in:
Jonah Aragon
2025-07-22 11:04:03 -05:00
parent 0f40fe6270
commit 4a4ca67465
2 changed files with 7 additions and 29 deletions
+6 -19
View File
@@ -1,22 +1,9 @@
FROM geerlingguy/docker-debian12-ansible:latest
FROM ghcr.io/devture/ansible:11.1.0-r0-0
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3-passlib \
git \
pwgen \
openssh-client \
curl && \
rm -rf /var/lib/apt/lists/* && \
rm -Rf /usr/share/doc && rm -Rf /usr/share/man && \
apt-get clean
# Install Just
RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
# Install additional packages
RUN apk add --no-cache \
pwgen
# Preserve command history across container restarts
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \
&& echo "$SNIPPET" >> "/root/.bashrc"
RUN SNIPPET="export HISTFILE=/commandhistory/.ash_history" \
&& echo "$SNIPPET" >> "/root/.profile"