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
This commit is contained in:
parent
4c9f318e0f
commit
d71258b1ea
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user