From d71258b1ea7e36fe00e747f7bf7f421f36563750 Mon Sep 17 00:00:00 2001
From: Jim Rollenhagen <jim@jimrollenhagen.com>
Date: Thu, 16 Jul 2015 07:03:24 -0700
Subject: [PATCH] Change Dockerfile to use Debian as a base

Ubuntu licensing does not allow for distributing derivatives of Ubuntu,
including containers based on Ubuntu. We currently publish a CoreOS PXE
image with an IPA container embedded. Basing this container on Ubuntu
appears to violate Ubuntu's license. Let's move to Debian to fix this.

Also remove the python3 purge as python3 doesn't exist in the Debian
base image.

Closes-Bug: #1475325
Change-Id: I051e3123f0cd1e66b5e3bae727559fe31467791b
---
 Dockerfile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index e51a61a4f..e2451dc43 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM stackbrew/ubuntu:trusty
+FROM debian:jessie
 
 # The add is before the RUN to ensure we get the latest version of packages
 # Docker will cache RUN commands, but because the SHA1 of the dir will be
@@ -30,8 +30,7 @@ RUN apt-mark manual python-setuptools
 RUN apt-mark manual python-minimal
 
 # Remove no longer needed packages
-RUN apt-get -y purge gcc-4.6 gcc python2.7-dev git python3 \
-                     python3-minimal python3.4 python3.4-minimal && \
+RUN apt-get -y purge gcc-4.6 gcc python2.7-dev git && \
     apt-get -y autoremove && \
     apt-get clean