dockerfiles/termboy/Dockerfile

52 lines
1.0 KiB
Docker
Raw Permalink Normal View History

# DESCRIPTION: Termboy in a container
# AUTHOR: Jessie Frazelle <jess@linux.com>
2015-04-10 07:07:40 +02:00
# COMMENTS:
# This file describes how to build termboy
# in a container with all dependencies installed.
# Tested on Debian Jessie.
2015-04-10 07:07:40 +02:00
# USAGE:
# # Download termboy Dockerfile
# wget https://raw.githubusercontent.com/jessfraz/dockerfiles/master/termboy/Dockerfile
2015-04-10 07:07:40 +02:00
#
# # Build termboy image
# docker build -t termboy .
2015-04-10 07:07:40 +02:00
#
# docker run -it \
# --device /dev/snd \
# termboy
2015-04-10 07:07:40 +02:00
#
# Base docker image
FROM debian:bullseye-slim
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
2015-04-10 07:07:40 +02:00
ENV DEBIAN_FRONTEND noninteractive
# Install dependencies
RUN apt-get update && apt-get install -y \
ca-certificates \
console-setup \
console-setup-linux \
g++ \
git \
kbd \
libasound2-dev \
libncurses5-dev \
libncursesw5-dev \
make \
sudo \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 https://github.com/dobyrch/termboy /src \
&& cd /src \
&& make \
&& make install || true
2015-04-10 07:07:40 +02:00
# add games
COPY games /games
2015-04-10 07:07:40 +02:00
# Autorun termboy
ENTRYPOINT ["/usr/bin/termboy"]