virtualbox cleanup

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2017-02-12 10:38:40 -08:00
parent 589db818b7
commit 9819aa12b6
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -32,20 +32,19 @@
FROM debian:sid
MAINTAINER Jessie Frazelle <jess@linux.com>
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
gnupg \
--no-install-recommends \
RUN buildDeps=' \
ca-certificates \
curl \
gnupg \
' \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& curl -sSL https://www.virtualbox.org/download/oracle_vbox_2016.asc | apt-key add - \
&& echo "deb http://download.virtualbox.org/virtualbox/debian stretch contrib" >> /etc/apt/sources.list.d/virtualbox.list \
&& apt-get update && apt-get install -y \
virtualbox-5.0 \
--no-install-recommends \
&& apt-get purge -y --auto-remove \
ca-certificates \
curl \
gnupg \
&& rm -rf /var/lib/apt/lists/*
&& apt-get purge -y --auto-remove $buildDeps
ENTRYPOINT [ "/usr/bin/virtualbox" ]