-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
46 lines (24 loc) · 1.47 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM php:5.6-zts
ENV homedir /home/ebotv3
#RUN apt-get update && apt-get -y upgrade && apt-get clean
RUN apt-get update && apt-get clean
RUN apt-get -y install nodejs npm curl git && apt-get clean
RUN /bin/ln -s /usr/bin/nodejs /usr/bin/node
RUN docker-php-ext-install mysql
RUN docker-php-ext-enable mysql
RUN docker-php-ext-install sockets
RUN docker-php-ext-enable sockets
RUN pecl install pthreads-2.0.10
RUN docker-php-ext-enable pthreads
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin
RUN mkdir ${homedir} && cd ${homedir} && git clone https://github.com/deStrO/eBot-CSGO.git && ln -s ${homedir}/eBot-CSGO ${homedir}/ebot-csgo && cd ${homedir}/ebot-csgo && /usr/local/bin/php /usr/bin/composer.phar install
RUN cp ${homedir}/ebot-csgo/config/config.ini.smp ${homedir}/ebot-csgo/config/config.ini
RUN sed -i 's/MYSQL_IP = "127.0.0.1"/MYSQL_IP = "mysql"/g' /home/ebotv3/ebot-csgo/config/config.ini
RUN sed -i 's/EXTERNAL_LOG_IP = ""/EXTERNAL_LOG_IP = "ebot"/g' /home/ebotv3/ebot-csgo/config/config.ini
RUN npm install [email protected] formidable archiver
#COPY Match.php /home/ebotv3/eBot-CSGO-master/src/eBot/Match/Match.php
COPY wait-for-it.sh /tmp/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh ; chmod +x /tmp/wait-for-it.sh
#CMD ["sh", "-c", "bash /tmp/wait-for-it.sh -h ebotweb -p 80 -t 0 ; echo 'Waiting for tables to be created' ; sleep 30 ; /usr/local/bin/php ${homedir}/ebot-csgo/bootstrap.php"]
ENTRYPOINT /entrypoint.sh