Add Dockerfile

This commit is contained in:
Francis Lavoie 2017-03-09 19:08:35 -05:00
parent ddce54f991
commit dab2f926b9
1 changed files with 17 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -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"]