]> git.immae.eu Git - github/fretlink/docker-ansible.git/blame - alpine3/Dockerfile
Fix: remove the need for an 'echo -e' option due to inconsistency treatments among...
[github/fretlink/docker-ansible.git] / alpine3 / Dockerfile
CommitLineData
ae06b63d
WY
1# Dockerfile for building Ansible image for Alpine 3, with as few additional software as possible.
2#
3# @see https://github.com/gliderlabs/docker-alpine/blob/master/docs/usage.md
4#
5# Version 1.0
6#
7
8
9# pull base image
de4433f3 10FROM alpine:3.3
ae06b63d
WY
11
12MAINTAINER William Yeh <william.pjyeh@gmail.com>
13
14
15RUN echo "===> Adding Python runtime..." && \
16 apk --update add python py-pip openssl ca-certificates && \
17 apk --update add --virtual build-dependencies python-dev build-base && \
18 pip install --upgrade pip && \
19 \
20 \
21 echo "===> Installing Ansible..." && \
22 pip install ansible && \
23 \
24 \
25 echo "===> Removing package list..." && \
26 apk del build-dependencies && \
27 rm -rf /var/cache/apk/* && \
28 \
29 \
30 echo "===> Adding hosts for convenience..." && \
31 mkdir -p /etc/ansible && \
7b2618d5 32 echo 'localhost' > /etc/ansible/hosts
ae06b63d
WY
33
34
35# default command: display Ansible version
36CMD [ "ansible-playbook", "--version" ]