Merge pull request #23 from firecat53/patch-1

Update Dockerfile
This commit is contained in:
bradley
2017-03-10 19:19:20 +11:00
committed by GitHub

View File

@@ -2,16 +2,12 @@ FROM debian:jessie
RUN BUILD_PACKAGES="curl wget" && \ RUN BUILD_PACKAGES="curl wget" && \
apt-get update && \ apt-get update && \
apt-get install -y $BUILD_PACKAGES apt-get install -y $BUILD_PACKAGES && \
wget $(curl -s https://api.github.com/repos/bcicen/ctop/releases/latest | \
RUN wget $(curl -s https://api.github.com/repos/bcicen/ctop/releases/latest | \ grep 'browser_' | cut -d\" -f4 |grep 'linux-amd64') \
grep 'browser_' | cut -d\" -f4 | \
grep 'linux-amd64') \
-O /usr/local/bin/ctop && \ -O /usr/local/bin/ctop && \
chmod +x /usr/local/bin/ctop chmod +x /usr/local/bin/ctop &&
AUTO_ADDED_PACKAGES=`apt-mark showauto` && \
RUN AUTO_ADDED_PACKAGES=`apt-mark showauto` && \
apt-get remove --purge -y $BUILD_PACKAGES $AUTO_ADDED_PACKAGES apt-get remove --purge -y $BUILD_PACKAGES $AUTO_ADDED_PACKAGES
CMD ["ctop"] CMD ["ctop"]