349b06974e
- Reduce image size by skipping recommended packages. - Consolidate and sort packages to install. - Improve consistency between Ubuntu versions. - Combine apt-get update and install to avoid caching stale updates.
64 lines
1.4 KiB
Docker
64 lines
1.4 KiB
Docker
FROM ubuntu:16.04
|
|
|
|
RUN apt-get update -y && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
acl \
|
|
apache2 \
|
|
asciidoc \
|
|
bzip2 \
|
|
cdbs \
|
|
curl \
|
|
debhelper \
|
|
debianutils \
|
|
devscripts \
|
|
docbook-xml \
|
|
dpkg-dev \
|
|
fakeroot \
|
|
gawk \
|
|
git \
|
|
iproute2 \
|
|
libxml2-utils \
|
|
locales \
|
|
lsb-release \
|
|
make \
|
|
mercurial \
|
|
mysql-server \
|
|
openssh-client \
|
|
openssh-server \
|
|
python-coverage \
|
|
python-dbus \
|
|
python-httplib2 \
|
|
python-jinja2 \
|
|
python-keyczar \
|
|
python-mock \
|
|
python-mysqldb \
|
|
python-nose \
|
|
python-paramiko \
|
|
python-pip \
|
|
python-setuptools \
|
|
python-virtualenv \
|
|
python-wheel \
|
|
python-yaml \
|
|
reprepro \
|
|
rsync \
|
|
ruby \
|
|
subversion \
|
|
sudo \
|
|
unzip \
|
|
virtualenv \
|
|
xsltproc \
|
|
zip \
|
|
&& \
|
|
apt-get clean
|
|
|
|
RUN rm /etc/apt/apt.conf.d/docker-clean
|
|
RUN mkdir /etc/ansible/
|
|
RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
|
|
RUN locale-gen en_US.UTF-8
|
|
RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \
|
|
cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
|
|
for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done
|
|
VOLUME /sys/fs/cgroup /run/lock /run /tmp
|
|
RUN pip install junit-xml
|
|
ENV container=docker
|
|
CMD ["/sbin/init"]
|