forked from jffz/docker-ebot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 1.13 KB
/
Dockerfile
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
FROM php:5.6.25-zts
ENV EBOT_HOME="/ebot" \
TIMEZONE="Europe/Paris"
RUN apt-get update -y && apt-get install -y netcat git nodejs npm php5-curl && apt-get clean && \
mkdir ${EBOT_HOME} && \
ln -s /usr/bin/nodejs /usr/bin/node && \
npm install socket.io@0.9.12 archiver@0.4.10 formidable && \
npm install -g forever && \
pecl install pthreads-2.0.10 && \
docker-php-ext-enable pthreads && \
docker-php-ext-install mysql sockets && \
echo 'date.timezone = "${TIMEZONE}"' >> /usr/local/etc/php/conf.d/php.ini && \
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php composer-setup.php --install-dir=/usr/bin && \
php -r "unlink('composer-setup.php');" && \
git clone https://github.com/deStrO/eBot-CSGO.git "$EBOT_HOME" && \
cd "$EBOT_HOME" && git checkout "master" && \
/usr/local/bin/php /usr/bin/composer.phar install && \
cp "$EBOT_HOME"/config/config.ini.smp "$EBOT_HOME"/config/config.ini
WORKDIR ${EBOT_HOME}
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod +x /sbin/entrypoint.sh
EXPOSE 12360 12360/udp 12361/udp
ENTRYPOINT ["/sbin/entrypoint.sh"]