From f966242805e67f91bffdc5f9eb02096bb5e1f856 Mon Sep 17 00:00:00 2001 From: William Yeh Date: Mon, 30 May 2016 11:46:11 +0800 Subject: Add: new `mini` series for building minimal images from playbooks. --- mini-alpine3/Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 mini-alpine3/Dockerfile (limited to 'mini-alpine3/Dockerfile') 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 @@ +# Dockerfile for building Alpine-based image, via Ansible playbooks. +# +# @see https://github.com/gliderlabs/docker-alpine/blob/master/docs/usage.md +# +# Version 1.0 +# + + +# pull base image +FROM alpine:3.3 + +MAINTAINER William Yeh + +#ENV APK_LIST apk-list +#ENV PIP_LIST pip-list + + +COPY . /tmp + +ONBUILD COPY . /tmp +ONBUILD RUN \ + cd /tmp && \ + ./prepare-pkg-list.sh && \ + ./install-ansible.sh && \ + ./ansible-playbook-wrapper && \ + ./uninstall-ansible.sh && \ + cd / && \ + rm -rf /tmp/* -- cgit v1.2.3