-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.client
More file actions
executable file
·50 lines (43 loc) · 1.34 KB
/
Dockerfile.client
File metadata and controls
executable file
·50 lines (43 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM raspbian/stretch
LABEL org.opencontainers.image.source=https://github.com/asm/ansi_scroller
RUN apt-get update && apt-get install -y --no-install-recommends \
ruby \
ruby-dev \
libfontconfig-dev \
automake \
build-essential \
libtool \
libfreeimage-dev \
libopenal-dev \
libpango1.0-dev \
libudev-dev \
libtiff5-dev \
libwebp-dev \
freeglut3-dev \
libjpeg-dev \
curl \
ca-certificates \
libraspberrypi-dev && \
rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
RUN curl -O https://www.libsdl.org/release/SDL2-2.0.10.tar.gz && \
tar zxf SDL2-2.0.10.tar.gz && \
cd SDL2-2.0.10 && ./configure \
--disable-pulseaudio \
--disable-esd \
--disable-video-wayland \
--disable-video-opengl \
--host=arm-raspberry-linux-gnueabihf \
--prefix=/usr && make && sudo make install && \
rm -rf SDL2-2.0.10*
RUN curl -O http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz && \
tar zxf SDL2_ttf-2.0.14.tar.gz && \
cd SDL2_ttf-2.0.14 && ./configure --prefix=/usr && make && sudo make install && \
rm -rf SDL2_ttf-2.0.14*
RUN gem install --no-ri --no-rdoc ruby-sdl2 ssdp eventmachine
RUN mkdir -p /opt/ansi_scroller
COPY bin /opt/ansi_scroller/bin
COPY lib /opt/ansi_scroller/lib
COPY *.ttf /opt/ansi_scroller/
WORKDIR /opt/ansi_scroller
CMD ["ruby", "bin/ansi_client.rb"]