blob: e50d81f1d3cd5eccecbbe317da30613b1f34992f [file] [log] [blame]
Jessica Frazelle17bbb622015-06-05 10:24:11 -07001# DESCRIPTION: Run text-based emacs tetris in a container
Jess Frazellec4ff0cf2016-09-19 15:25:05 -07002# AUTHOR: Jessie Frazelle <jess@linux.com>
Jessica Frazelle152b69a2014-10-20 03:09:52 -07003# COMMENTS:
Jessica Frazelle17bbb622015-06-05 10:24:11 -07004# This file describes how to build tetris in a container with all
Marc Cornellà7ac48812016-06-06 05:40:20 +02005# dependencies installed.
Jessica Frazelle17bbb622015-06-05 10:24:11 -07006# Tested on Debian Jessie
Jessica Frazelle152b69a2014-10-20 03:09:52 -07007# USAGE:
Jessica Frazelle17bbb622015-06-05 10:24:11 -07008# # Download tetris Dockerfile
Jess Frazelled6396732016-10-25 13:37:56 -07009# wget https://raw.githubusercontent.com/jessfraz/dockerfiles/master/tetris/Dockerfile
Jessica Frazelle152b69a2014-10-20 03:09:52 -070010#
Jessica Frazelle17bbb622015-06-05 10:24:11 -070011# # Build tetris image
12# docker build -t tetris .
Jessica Frazelle152b69a2014-10-20 03:09:52 -070013#
Jessica Frazelle17bbb622015-06-05 10:24:11 -070014# docker run -it tetris
Jessica Frazelle152b69a2014-10-20 03:09:52 -070015#
16
Jessica Frazelle152b69a2014-10-20 03:09:52 -070017# Base docker image
Jessica Frazelle0691fba2015-08-15 18:54:31 -070018FROM alpine:latest
Michael7eea00e2017-03-09 18:14:37 +000019LABEL maintainer "Jessie Frazelle <jess@linux.com>"
Jessica Frazelle152b69a2014-10-20 03:09:52 -070020
Jessica Frazelle0691fba2015-08-15 18:54:31 -070021# Install emacs:
Jess Frazelled112cd42016-12-02 13:42:52 -080022# Note: Emacs is only in community repo -> https://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64
Marc Cornellà7ac48812016-06-06 05:40:20 +020023RUN apk --no-cache add \
Jess Frazelled112cd42016-12-02 13:42:52 -080024 --repository https://dl-3.alpinelinux.org/alpine/edge/community/ \
Marc Cornellà7ac48812016-06-06 05:40:20 +020025 emacs
Jessica Frazelle152b69a2014-10-20 03:09:52 -070026
27# Autorun tetris
28CMD ["/usr/bin/emacs", "-f", "tetris"]