Created
July 3, 2023 04:51
-
-
Save rabiayilmazz/e0d64911bd31915f48eadda16f373170 to your computer and use it in GitHub Desktop.
Build an image with Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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