2015-06-21 02:32:13 +02:00
|
|
|
# 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
|
|
|
|
#
|
2018-09-14 16:10:41 +02:00
|
|
|
FROM debian:sid-slim
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-06-21 02:32:13 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
binutils \
|
|
|
|
ca-certificates \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
golang \
|
|
|
|
libgl1-mesa-dev \
|
|
|
|
libgl1-mesa-dri \
|
|
|
|
libxcursor-dev \
|
2020-05-15 11:13:45 +02:00
|
|
|
libxxf86vm-dev \
|
2015-06-21 02:32:13 +02:00
|
|
|
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" ]
|