2018-04-02 01:18:44 +00:00
|
|
|
FROM alpine:3.7 AS ts3client-download
|
|
|
|
|
|
|
|
ARG TS3CLIENT_VERSION=3.1.8
|
|
|
|
|
|
|
|
# Install TeamSpeak3.
|
|
|
|
# Original comment that used to be here: temporary non-interactive teamspeak3 install hack, remove before publishing!!
|
|
|
|
# In fact, it would be nice if we had some lazy handling code for this that just requires the user to provide a "--agree-with-license" once.
|
|
|
|
ADD "http://teamspeak.gameserver.gamed.de/ts3/releases/${TS3CLIENT_VERSION}/TeamSpeak3-Client-linux_amd64-${TS3CLIENT_VERSION}.run" /ts3client.run
|
|
|
|
RUN sed -i 's/^MS_PrintLicense$/#MS_PrintLicense/g' /ts3client.run
|
|
|
|
RUN chmod +x /ts3client.run
|
|
|
|
RUN /ts3client.run --quiet --target ts3client
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2017-05-17 23:22:46 +00:00
|
|
|
FROM node:7.10.0
|
2015-10-16 09:08:26 +00:00
|
|
|
|
2017-05-18 06:36:57 +00:00
|
|
|
# Install runtime packages
|
|
|
|
RUN apt-get update &&\
|
|
|
|
export INITRD=no &&\
|
|
|
|
export DEBIAN_FRONTEND=noninteractive &&\
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
ca-certificates \
|
|
|
|
blackbox xvfb xdotool \
|
|
|
|
pulseaudio pulseaudio-utils \
|
|
|
|
vlc-nox '^libvlc[0-9]+$' vlc-plugin-pulse
|
2015-10-16 09:08:26 +00:00
|
|
|
|
2015-10-31 23:45:06 +00:00
|
|
|
# Add "app" user
|
|
|
|
RUN mkdir -p /tmp/empty &&\
|
2015-11-01 13:57:03 +00:00
|
|
|
groupadd -g 9999 app &&\
|
2015-11-01 15:05:56 +00:00
|
|
|
useradd -d /home/app -l -N -g app -m -k /tmp/empty -u 9999 app &&\
|
|
|
|
rmdir /tmp/empty
|
2015-10-31 23:45:06 +00:00
|
|
|
|
2017-05-18 06:36:57 +00:00
|
|
|
COPY . /home/app/ts3bot/
|
|
|
|
RUN cd ~app/ts3bot &&\
|
|
|
|
sed -i 's,\r,,g' setup.sh &&\
|
|
|
|
sh setup.sh
|
2015-10-16 09:08:26 +00:00
|
|
|
|
|
|
|
WORKDIR /home/app
|
2018-04-02 01:18:44 +00:00
|
|
|
COPY --from=ts3client-download /ts3client/ ./ts3client
|
|
|
|
|
|
|
|
# Startup configuration
|
2015-10-31 23:45:06 +00:00
|
|
|
USER app
|
2015-11-05 03:03:59 +00:00
|
|
|
CMD [ "ts3bot", "--ts3-install-path=/home/app/ts3client" ]
|