mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
39 lines
687 B
Docker
39 lines
687 B
Docker
|
# NES emulator in a container
|
||
|
#
|
||
|
# docker run --rm -d \
|
||
|
# --device /dev/snd \
|
||
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
||
|
# -e DISPLAY=unix$DISPLAY \
|
||
|
# --device /dev/dri \
|
||
|
# jess/nes /games/zelda.rom
|
||
|
#
|
||
|
FROM debian:sid
|
||
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||
|
|
||
|
RUN apt-get update && apt-get install -y \
|
||
|
binutils \
|
||
|
ca-certificates \
|
||
|
gcc \
|
||
|
git \
|
||
|
golang \
|
||
|
libgl1-mesa-dev \
|
||
|
libgl1-mesa-dri \
|
||
|
libxcursor-dev \
|
||
|
libxi-dev \
|
||
|
libxinerama-dev \
|
||
|
libxrandr-dev \
|
||
|
mercurial \
|
||
|
portaudio19-dev \
|
||
|
--no-install-recommends \
|
||
|
&& rm -rf /var/lib/apt/lists/* \
|
||
|
&& ldconfig
|
||
|
|
||
|
ENV GOPATH /go
|
||
|
ENV PATH /go/bin:$PATH
|
||
|
|
||
|
RUN go get github.com/fogleman/nes
|
||
|
|
||
|
COPY games /games
|
||
|
|
||
|
ENTRYPOINT [ "nes" ]
|