Skip to content

Instantly share code, notes, and snippets.

@rabiayilmazz
Created July 3, 2023 04:51
Show Gist options
  • Save rabiayilmazz/e0d64911bd31915f48eadda16f373170 to your computer and use it in GitHub Desktop.
Save rabiayilmazz/e0d64911bd31915f48eadda16f373170 to your computer and use it in GitHub Desktop.
Build an image with Dockerfile
# USAGE:
#
# # Build tetris image
# docker build -t tetris .
#
# docker run -it tetris
#
# Base docker image
FROM alpine:latest
LABEL maintainer "Rabia Yilmaz github/rabiayilmazz"
# Install emacs:
# Note: Emacs is only in community repo -> https://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64
RUN apk --no-cache add \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ \
emacs
# Autorun tetris
CMD ["/usr/bin/emacs", "-f", "tetris"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment