From dab2f926b9114efe75ea3d912ed12888acccd9a7 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Thu, 9 Mar 2017 19:08:35 -0500 Subject: [PATCH] Add Dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..171a6fc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:jessie + +RUN BUILD_PACKAGES="curl wget" && \ + apt-get update && \ + apt-get install -y $BUILD_PACKAGES + +RUN wget $(curl -s https://api.github.com/repos/bcicen/ctop/releases/latest | \ + grep 'browser_' | cut -d\" -f4 | \ + grep 'linux-amd64') \ + -O /usr/local/bin/ctop && \ + chmod +x /usr/local/bin/ctop + +RUN AUTO_ADDED_PACKAGES=`apt-mark showauto` && \ + apt-get remove --purge -y $BUILD_PACKAGES $AUTO_ADDED_PACKAGES + + +CMD ["ctop"]