Skip to content

Instantly share code, notes, and snippets.

@Kurt29
Forked from henrik-muehe/Dockerfile
Created January 10, 2018 15:20
Show Gist options
  • Save Kurt29/4a21f866e4a5d8e820e302f5f23b3ded to your computer and use it in GitHub Desktop.
Save Kurt29/4a21f866e4a5d8e820e302f5f23b3ded to your computer and use it in GitHub Desktop.
Allows installing the ubuntu "fuse" package without creating any devices. Used to install packages on docker which require fuse but do not actively use it.
...
# Fake a fuse install
RUN apt-get install libfuse2
RUN cd /tmp ; apt-get download fuse
RUN cd /tmp ; dpkg-deb -x fuse_* .
RUN cd /tmp ; dpkg-deb -e fuse_*
RUN cd /tmp ; rm fuse_*.deb
RUN cd /tmp ; echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst
RUN cd /tmp ; dpkg-deb -b . /fuse.deb
RUN cd /tmp ; dpkg -i /fuse.deb
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment