-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
36 lines (34 loc) · 981 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM debian:jessie as builder
MAINTAINER Christopher Davenport
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-utils \
&& apt-get install -y --no-install-recommends \
build-essential \
libffi-dev \
libssl-dev \
python-pip \
python-dev \
python-wheel \
&& pip install --upgrade pip \
&& /usr/local/bin/pip install \
ansible \
cryptography \
yamllint \
ansible-lint
FROM debian:jessie
COPY --from=builder /usr/local/ /usr/local/
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
sudo \
libffi6 \
python \
python-six \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& rm -Rf /usr/share/doc \
&& rm -Rf /usr/share/man \
&& apt-get clean \
&& mkdir -p /etc/ansible \
&& echo "[local]" > /etc/ansible/hosts \
&& echo "localhost ansible_connection=local" >> /etc/ansible/hosts