forked from pboardman/dosbox-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.hostpulse
More file actions
executable file
·47 lines (41 loc) · 1.42 KB
/
Dockerfile.hostpulse
File metadata and controls
executable file
·47 lines (41 loc) · 1.42 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
FROM alpine:edge
ADD [ "dosbox-0.74-2.tar.gz", "dosbox-0.74.patch", "/build/" ]
ENV PULSE_SERVER /run/pulse/native
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk update \
&& apk add --no-cache sdl libxxf86vm libstdc++ libgcc build-base sdl-dev linux-headers file pulseaudio@testing pulseaudio-utils@testing pulseaudio-dev@testing \
&& wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.3.tar.bz2 \
&& bzip2 -d alsa-lib-1.1.3.tar.bz2 \
&& tar xvf alsa-lib-1.1.3.tar \
&& cd alsa-lib-1.1.3 \
&& ./configure \
&& make \
&& make install \
&& cd - \
&& rm -R alsa-lib-1.1.3* \
&& wget ftp://ftp.alsa-project.org/pub/plugins/alsa-plugins-1.1.1.tar.bz2 \
&& bzip2 -d alsa-plugins-1.1.1.tar.bz2 \
&& tar xvf alsa-plugins-1.1.1.tar \
&& cd alsa-plugins-1.1.1 \
&& ./configure --enable-pulseaudio \
&& make \
&& make install \
&& cd - \
&& rm -R alsa-plugins-1.1.1* \
&& apk add --no-cache alsa-utils@testing \
&& mkdir /dosbox \
&& cd /build \
&& patch -p0 < dosbox-0.74.patch \
&& cd dosbox-0.74-2 \
&& ./configure --prefix=/usr \
&& make \
&& make install \
&& apk del build-base sdl-dev linux-headers \
&& rm -R /build
ADD asound.conf /etc/asound.conf
ADD docker-entrypoint-hostpulse.sh /docker-entrypoint.sh
RUN chmod a+x /docker-entrypoint.sh
# Mounting the config and data directory
VOLUME [/root/.dosbox]
VOLUME [/dosbox]
ENTRYPOINT [ "/docker-entrypoint.sh" ]