aboutsummaryrefslogtreecommitdiffhomepage
path: root/mini-alpine3/Dockerfile
diff options
context:
space:
mode:
authorWilliam Yeh <william.pjyeh@gmail.com>2016-05-30 11:46:11 +0800
committerWilliam Yeh <william.pjyeh@gmail.com>2016-05-30 11:46:11 +0800
commitf966242805e67f91bffdc5f9eb02096bb5e1f856 (patch)
treeadbc4d5e7779f470dbf6e94b244ea33a9d9842d9 /mini-alpine3/Dockerfile
parent84d31fd8edaec467b7a22c9fcf9b0f3097539e6a (diff)
downloaddocker-ansible-f966242805e67f91bffdc5f9eb02096bb5e1f856.tar.gz
docker-ansible-f966242805e67f91bffdc5f9eb02096bb5e1f856.tar.zst
docker-ansible-f966242805e67f91bffdc5f9eb02096bb5e1f856.zip
Add: new `mini` series for building minimal images from playbooks.
Diffstat (limited to 'mini-alpine3/Dockerfile')
-rw-r--r--mini-alpine3/Dockerfile28
1 files changed, 28 insertions, 0 deletions
diff --git a/mini-alpine3/Dockerfile b/mini-alpine3/Dockerfile
new file mode 100644
index 0000000..2287deb
--- /dev/null
+++ b/mini-alpine3/Dockerfile
@@ -0,0 +1,28 @@
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
10FROM alpine:3.3
11
12MAINTAINER William Yeh <william.pjyeh@gmail.com>
13
14#ENV APK_LIST apk-list
15#ENV PIP_LIST pip-list
16
17
18COPY . /tmp
19
20ONBUILD COPY . /tmp
21ONBUILD 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/*