-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.debian
38 lines (29 loc) · 1.46 KB
/
Dockerfile.debian
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
FROM debian:jessie
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -yq libc6-i386 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
ENV GOSU_VERSION 1.10
RUN set -x \
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu \
&& gosu nobody true \
&& apt-get purge -y --auto-remove ca-certificates wget
# Fetch from spicefly.com
# WORKDIR /opt
# RUN wget http://www.spicefly.com/files/MusicMixer_x86_1.8.tgz
# RUN tar -xpf MusicMixer_x86_1.8.tgz && rm -f MusicMixer_x86_1.8.tgz
# RUN cd /opt/MusicIP/MusicMagicMixer/server && \
# RUN unzip index-1.1.zip
ADD MusicMixer_x86_1.8.tgz /opt
ADD index.html /opt/MusicIP/MusicMagicMixer/server
RUN useradd -m -g users --uid 1057 musicip
VOLUME /home/musicip
EXPOSE 10002
CMD gosu musicip /opt/MusicIP/MusicMagicMixer/MusicMagicServer -verbose start