| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=22.04 |
| ADD file:415bbc01dfb447d002e2d8173e113ef025d2bbfa20f1205823fa699dc87a2019 in / |
| CMD ["/bin/bash"] |
| ENV SINUSBOT_VERSION=current TS3_VERSION=3.5.6 TS3_ARCH=amd64 BOT_USER=sinusbot BOT_HOME=/opt/sinusbot |
| RUN /bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget bzip2 ca-certificates curl dbus iproute2 less screen xvfb libasound2 libegl1-mesa libfontconfig libglib2.0-0 libnss3 libpci3 libxcomposite-dev libxcursor1 libxdamage1 libxi6 libxkbcommon0 libxkbcommon-x11-0 libxss1 libxslt1.1 libxtst6 x11-xkb-utils libpulse0 espeak-ng mbrola mbrola-de6 fonts-dejavu fonts-liberation fonts-freefont-ttf && update-ca-certificates && useradd -m -d /home/${BOT_USER} -s /bin/bash ${BOT_USER} && mkdir -p ${BOT_HOME} && chown -R ${BOT_USER}:${BOT_USER} ${BOT_HOME} # buildkit |
| WORKDIR /tmp |
| RUN /bin/sh -c wget -q https://www.sinusbot.com/dl/sinusbot.${SINUSBOT_VERSION}.tar.bz2 && tar -xjf sinusbot.${SINUSBOT_VERSION}.tar.bz2 -C ${BOT_HOME} && rm sinusbot.${SINUSBOT_VERSION}.tar.bz2 # buildkit |
| RUN /bin/sh -c wget https://files.teamspeak-services.com/releases/client/${TS3_VERSION}/TeamSpeak3-Client-linux_${TS3_ARCH}-${TS3_VERSION}.run && chmod +x TeamSpeak3-Client-linux_${TS3_ARCH}-${TS3_VERSION}.run && mkdir /tmp/ts3 && yes y | ./TeamSpeak3-Client-linux_${TS3_ARCH}-${TS3_VERSION}.run --target /tmp/ts3 && mkdir -p ${BOT_HOME}/teamspeak3-client && cp -r /tmp/ts3/* ${BOT_HOME}/teamspeak3-client/ && rm -rf /tmp/ts3 *.run # buildkit |
| RUN /bin/sh -c mkdir -p ${BOT_HOME}/teamspeak3-client/plugins && cp ${BOT_HOME}/plugin/libsoundbot_plugin.so ${BOT_HOME}/teamspeak3-client/plugins/ # buildkit |
| COPY ./data/config.ini /opt/sinusbot/config.ini # buildkit |
| RUN /bin/sh -c cp -a ${BOT_HOME}/scripts ${BOT_HOME}/scripts.dist # buildkit |
| RUN /bin/sh -c chown -R ${BOT_USER}:${BOT_USER} ${BOT_HOME} && chmod +x ${BOT_HOME}/sinusbot # buildkit |
| COPY ./data/bin/entrypoint.sh /opt/sinusbot/entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /opt/sinusbot/entrypoint.sh # buildkit |
| RUN /bin/sh -c chown -R ${BOT_USER}:${BOT_USER} ${BOT_HOME} && chmod +x ${BOT_HOME}/sinusbot # buildkit |
| WORKDIR /opt/sinusbot |
| USER sinusbot |
| EXPOSE map[8087/tcp:{}] |
| ENTRYPOINT ["/opt/sinusbot/entrypoint.sh"] |
| CMD ["./sinusbot"] |