mirror of https://github.com/icedream/ts3bot.git
23 lines
468 B
Docker
23 lines
468 B
Docker
FROM node:7.10.0
|
|
|
|
ARG TS3CLIENT_VERSION=3.0.19.4
|
|
|
|
# Add "app" user
|
|
RUN mkdir -p /tmp/empty &&\
|
|
groupadd -g 9999 app &&\
|
|
useradd -d /home/app -l -N -g app -m -k /tmp/empty -u 9999 app &&\
|
|
rmdir /tmp/empty
|
|
|
|
ADD setup.sh /
|
|
COPY src/ /home/app/src/
|
|
RUN sed -i 's,\r,,g' /setup.sh &&\
|
|
sh /setup.sh
|
|
|
|
# Copy over configuration for other daemons
|
|
COPY etc/ /etc
|
|
|
|
# Startup configuration
|
|
WORKDIR /home/app
|
|
USER app
|
|
CMD [ "ts3bot", "--ts3-install-path=/home/app/ts3client" ]
|