mirror of https://github.com/icedream/ts3bot.git
Update TS3Bot to 003ec48763
.
Change installation process by using the global binary that TS3Bot now ships.pull/7/head
parent
bd82fd5ccf
commit
37263f8482
|
@ -1,7 +1,7 @@
|
||||||
FROM node:4.2
|
FROM node:4.2
|
||||||
|
|
||||||
ENV TS3CLIENT_VERSION 3.0.18.2
|
ENV TS3CLIENT_VERSION 3.0.18.2
|
||||||
ENV TS3BOT_COMMIT b71c2be88ff76445d2859047dfbdd5c117e74523
|
ENV TS3BOT_COMMIT 003ec4876352cf70f471d286543a88a3210df7a3
|
||||||
|
|
||||||
# Add "app" user
|
# Add "app" user
|
||||||
RUN mkdir -p /tmp/empty &&\
|
RUN mkdir -p /tmp/empty &&\
|
||||||
|
@ -18,4 +18,4 @@ COPY etc/ /etc
|
||||||
# Startup configuration
|
# Startup configuration
|
||||||
WORKDIR /home/app
|
WORKDIR /home/app
|
||||||
USER app
|
USER app
|
||||||
CMD [ "node", "/home/app/ts3bot", "--ts3-install-path=/home/app/ts3client" ]
|
CMD [ "ts3bot", "--ts3-install-path=/home/app/ts3client" ]
|
||||||
|
|
14
setup.sh
14
setup.sh
|
@ -30,17 +30,9 @@ sed -i 's/^MS_PrintLicense$/#MS_PrintLicense/g' ./ts3client.run
|
||||||
./ts3client.run --quiet --target ts3client
|
./ts3client.run --quiet --target ts3client
|
||||||
rm ./ts3client.run
|
rm ./ts3client.run
|
||||||
|
|
||||||
# Install TS3Bot
|
# Install TS3Bot via Git
|
||||||
wget https://github.com/icedream/ts3bot-control/archive/${TS3BOT_COMMIT}.tar.gz -O- |\
|
npm_config_wcjs_runtime="node" npm_config_wcjs_runtime_version="$(node --version | tr -d 'v')" \
|
||||||
tar xzv
|
npm install -g "https://github.com/icedream/ts3bot-control#${TS3BOT_COMMIT}"
|
||||||
mv ts3bot-control* ts3bot
|
|
||||||
(cd ts3bot && \
|
|
||||||
npm_config_wcjs_runtime="node" npm_config_wcjs_runtime_version="$(node --version | tr -d 'v')" \
|
|
||||||
npm install)
|
|
||||||
|
|
||||||
# Install youtube-dl (actually done by npm already in a non-system-wide way)
|
|
||||||
#ADD https://yt-dl.org/latest/youtube-dl /usr/local/bin/youtube-dl
|
|
||||||
#RUN chmod a+rx /usr/local/bin/youtube-dl
|
|
||||||
|
|
||||||
# Clean up APT
|
# Clean up APT
|
||||||
apt-get autoremove -y --purge wget cmake cmake-data
|
apt-get autoremove -y --purge wget cmake cmake-data
|
||||||
|
|
Loading…
Reference in New Issue