This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:22-alpine
|
||||
|
||||
RUN apk add ansible ansible-lint bash git openssh py3-dnspython
|
||||
ADD rootca.pem /usr/local/share/ca-certificates/cacert.crt
|
||||
RUN apk --no-cache add --no-check-certificate ca-certificates \
|
||||
&& update-ca-certificates --fresh
|
||||
|
||||
RUN adduser ansible --disabled-password --gecos ''
|
||||
WORKDIR /home/ansible
|
||||
|
||||
ARG ANSIBLE_ED25519
|
||||
RUN mkdir -p /home/ansible/.ssh/ && \
|
||||
echo 'StrictHostKeyChecking no' >> /home/ansible/.ssh/config
|
||||
RUN chown -R ansible:ansible /home/ansible/
|
||||
|
||||
USER ansible
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
ENTRYPOINT ["/usr/bin/env"]
|
||||
CMD ["ansible-playbook", "playbook.yml"]
|
||||
Reference in New Issue
Block a user