31 lines
1.1 KiB
Docker
31 lines
1.1 KiB
Docker
FROM ubuntu:16.04
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
ENV SNOWMIX_VERSION 0.5.1
|
|
|
|
WORKDIR /opt
|
|
RUN apt update && apt -y --no-install-recommends install gstreamer1.0-tools build-essential automake \
|
|
autoconf libtool g++ pkg-config libsdl1.2-dev libpango1.0-dev \
|
|
libpng12-dev libosmesa6-dev freeglut3-dev wget ca-certificates
|
|
RUN wget https://downloads.sourceforge.net/project/snowmix/Snowmix-${SNOWMIX_VERSION}.tar.gz -O Snowmix.tgz && \
|
|
tar xvf Snowmix.tgz
|
|
|
|
RUN apt -y --no-install-recommends install tcl tk bwidget tcl-dev
|
|
|
|
RUN cd Snowmix-${SNOWMIX_VERSION} && \
|
|
aclocal && autoconf && libtoolize --force && automake --add-missing && \
|
|
./configure && make && make install
|
|
|
|
ENV SNOWMIX /usr/local/lib/Snowmix-${SNOWMIX_VERSION}
|
|
|
|
RUN useradd snowmix && mkdir /home/snowmix /run/snowmix && chown snowmix /home/snowmix /run/snowmix
|
|
|
|
WORKDIR /config
|
|
|
|
RUN apt install -y --no-install-recommends gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-plugins-base gstreamer1.0-x
|
|
|
|
RUN apt install -y --no-install-recommends netcat bc
|
|
|
|
USER snowmix
|
|
CMD snowmix
|