1
0
Fork 0
home-stack-ansible/Dockerfile

19 lines
368 B
Docker
Raw Normal View History

2021-08-25 04:33:56 +00:00
FROM python:3.9-slim
ARG UNAME=ansible
# should match host
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID -o $UNAME && \
useradd -m -u $UID -g $GID -s /bin/sh $UNAME && \
apt-get update && \
apt-get install -y sshpass && \
pip3 install --no-cache-dir ansible==2.10 && \
rm -rf /var/lib/apt/lists/*
USER $UNAME
COPY . /etc/ansible
ENTRYPOINT []