Skip to content

Instantly share code, notes, and snippets.

@upperstream
Last active September 21, 2017 20:44
Show Gist options
  • Save upperstream/7df5cee9277006c3026cb73cfdabfd61 to your computer and use it in GitHub Desktop.
Save upperstream/7df5cee9277006c3026cb73cfdabfd61 to your computer and use it in GitHub Desktop.
Dockerfile for Debian with Heirloom Bourne Shell
FROM debian
RUN apt-get update && \
apt-get -y install build-essential wget && \
cd /tmp && \
wget -O - http://heirloom.cvs.sourceforge.net/viewvc/heirloom/heirloom-sh/?view=tar | tar zxvf - && \
cd heirloom-sh && \
sed -e 's:^SV3BIN=/usr/5bin:SV3BIN=/usr/local/bin:' -e 's:^MANDIR=/usr/share/man/5man:MANDIR=/usr/share/local/man:' -e 's:^UCBINST=/usr/ucb/install:UCBINST=/usr/bin/install:' makefile > makefile.new && \
mv makefile.new makefile && \
make && \
make install && \
echo "/usr/local/bin/sh" >> /etc/shells && \
apt-get -y remove build-essential wget && \
apt-get -y autoremove && \
rm -rf /tmp/heirloom-sh
ENTRYPOINT ["/usr/local/bin/sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment