summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorTom Duffield <tom@chef.io>2016-11-18 16:32:35 -0600
committerTom Duffield <tom@chef.io>2016-11-18 16:44:34 -0600
commite725164a439cd6536057f786075d8c34570a6c1c (patch)
tree91580bec5541f7e4f359e0b5ecf058215910e69a /Dockerfile
parentc4db90c5e5692f7d71395f36cc8288d0e91fbbf4 (diff)
downloadchef-e725164a439cd6536057f786075d8c34570a6c1c.tar.gz
Use rpm2cpio and busybox to build Docker imagetduffield/add-dockerfile
Signed-off-by: Tom Duffield <tom@chef.io>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index f2f0ce236c..1836ffb39b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,11 @@
-FROM centos:5
+FROM busybox
MAINTAINER Chef Software, Inc. <docker@chef.io>
ARG CHANNEL=stable
ARG VERSION=12.16.42
-ENV PATH=/opt/chef/bin:/opt/chef/embedded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-RUN yum install -y wget && \
- wget --content-disposition --no-check-certificate "https://packages.chef.io/files/${CHANNEL}/chef/${VERSION}/el/5/chef-${VERSION}-1.el5.x86_64.rpm" -O /tmp/chef-client.rpm && \
- rpm -i /tmp/chef-client.rpm && \
+RUN wget "http://packages.chef.io/files/${CHANNEL}/chef/${VERSION}/el/5/chef-${VERSION}-1.el5.x86_64.rpm" -O /tmp/chef-client.rpm && \
+ rpm2cpio /tmp/chef-client.rpm | cpio -idmv && \
rm -rf /tmp/chef-client.rpm
VOLUME [ "/opt/chef" ]