]>
Commit | Line | Data |
---|---|---|
1 | # Dockerfile for building Alpine-based image, via Ansible playbooks. | |
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 | |
10 | FROM alpine:3.6 | |
11 | ||
12 | MAINTAINER William Yeh <william.pjyeh@gmail.com> | |
13 | ||
14 | #ENV APK_LIST apk-list | |
15 | #ENV PIP_LIST pip-list | |
16 | ||
17 | ||
18 | COPY . /tmp | |
19 | ||
20 | ONBUILD COPY . /tmp | |
21 | ONBUILD RUN \ | |
22 | cd /tmp && \ | |
23 | ./prepare-pkg-list.sh && \ | |
24 | ./install-ansible.sh && \ | |
25 | ./ansible-playbook-wrapper && \ | |
26 | ./uninstall-ansible.sh && \ | |
27 | cd / && \ | |
28 | rm -rf /tmp/* |