diff options
Diffstat (limited to 'mini-debian8/Dockerfile')
-rw-r--r-- | mini-debian8/Dockerfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mini-debian8/Dockerfile b/mini-debian8/Dockerfile new file mode 100644 index 0000000..d45d4e6 --- /dev/null +++ b/mini-debian8/Dockerfile | |||
@@ -0,0 +1,27 @@ | |||
1 | # Dockerfile for building Debian-based image, via Ansible playbooks. | ||
2 | # | ||
3 | # @see http://docs.ansible.com/ansible/intro_installation.html#running-from-source | ||
4 | # | ||
5 | # Version 1.0 | ||
6 | # | ||
7 | |||
8 | |||
9 | # pull base image | ||
10 | FROM debian:8 | ||
11 | |||
12 | MAINTAINER William Yeh <william.pjyeh@gmail.com> | ||
13 | |||
14 | #ENV APT_LIST apt-list | ||
15 | |||
16 | |||
17 | COPY . /tmp | ||
18 | |||
19 | ONBUILD COPY . /tmp | ||
20 | ONBUILD RUN \ | ||
21 | cd /tmp && \ | ||
22 | ./prepare-pkg-list.sh && \ | ||
23 | ./install-ansible.sh && \ | ||
24 | ./ansible-playbook-wrapper && \ | ||
25 | ./uninstall-ansible.sh && \ | ||
26 | cd / && \ | ||
27 | rm -rf /tmp/* \ No newline at end of file | ||