-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
37 lines (35 loc) · 987 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
37
FROM ubuntu:xenial as builder
MAINTAINER Christopher Davenport
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
libffi-dev \
libssl-dev \
python3-pip \
python3-dev \
python3-setuptools \
python3-wheel \
# && pip install --upgrade pip \
&& pip3 install \
ansible \
cryptography \
yamllint \
ansible-lint
FROM ubuntu:xenial
COPY --from=builder /usr/local/ /usr/local/
# Install Bundle And Clean Excess
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python3 \
rsyslog \
systemd \
systemd-cron \
sudo \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& rm -Rf /usr/share/doc \
&& rm -Rf /usr/share/man \
&& touch -m -t 200101010101.01 /var/lib/apt/periodic/update-success-stamp \
&& apt-get clean \
&& mkdir -p /etc/ansible
COPY hosts /etc/ansible/