Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Created September 26, 2014 16:44
Show Gist options
  • Save dasgoll/15a4b18ef489dde10d84 to your computer and use it in GitHub Desktop.
Save dasgoll/15a4b18ef489dde10d84 to your computer and use it in GitHub Desktop.
FROM debian:jessie
ENV VERSION 2.25
RUN apt-get update -q
RUN apt-get install -qy curl build-essential
RUN mkdir /src
WORKDIR /src
RUN curl https://www.kernel.org/pub/linux/utils/util-linux/v$VERSION/util-linux-$VERSION.tar.gz \
| tar -zxf-
RUN ln -s util-linux-$VERSION util-linux
WORKDIR /src/util-linux
RUN ./configure --without-ncurses
RUN make LDFLAGS=-all-static nsenter
RUN cp nsenter /
ADD docker-enter /docker-enter
ADD installer /installer
CMD /installer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment