Skip to content

Instantly share code, notes, and snippets.

@andy5995
Forked from lmorchard/Dockerfile
Created February 27, 2023 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andy5995/b1505c11a16bdfa991ceda8f717785b1 to your computer and use it in GitHub Desktop.
Save andy5995/b1505c11a16bdfa991ceda8f717785b1 to your computer and use it in GitHub Desktop.
Dockerfile extending bbsio/synchronet to add DOSEMU
FROM bbsio/synchronet:latest
ARG DOSEMU_DEB_URL=http://ftp.us.debian.org/debian/pool/contrib/d/dosemu/dosemu_1.4.0.7+20130105+b028d3f-2+b1_amd64.deb
ARG DOSEMU_DEB=dosemu_1.4.0.7+20130105+b028d3f-2+b1_amd64.deb
RUN apt-get update \
&& apt-get install -y rsh-redone-client locales locales-all \
mtools dosfstools dos2unix ser2net socat
ENV USER=root LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8
# HACK: Install dosemu from .deb URL and allow for initial failure of install before dependencies
RUN wget -nc $DOSEMU_DEB_URL \
&& /usr/bin/dpkg -i $DOSEMU_DEB \
|| /usr/bin/apt-get -f install -y \
&& /usr/bin/dpkg -i $DOSEMU_DEB \
&& rm $DOSEMU_DEB
RUN mkdir -p /media/CDROM
ARG SBBS_SRC=./sbbs
COPY $SBBS_SRC/install/terminfo $SBBS_SRC/install/termcap ./
RUN /usr/bin/tic terminfo \
&& cat termcap >> /etc/termcap \
&& rm terminfo termcap
RUN apt-get install -y tmux
COPY ./start.sh ./
CMD ["./start.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment