ansible-actions-container/Dockerfile
Elia el Lazkani 185a905665
Some checks failed
build-container / docker (push) Has been cancelled
chore(): Clean up apt cache
2024-03-31 21:39:06 +02:00

13 lines
364 B
Docker

FROM python:3.12.2-slim-bookworm
RUN apt-get update > /dev/null && \
apt-get install -y -qq nodejs git > /dev/null && \
rm -rf /var/lib/apt/list/* && \
useradd -m --uid 1010 --shell /bin/bash ansible
USER 1010
RUN pip install --user ansible > /dev/null && \
echo 'export PATH="$HOME/.local/bin:$PATH"' >> $HOME/.bashrc
ENTRYPOINT ["/bin/bash"]