-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (17 loc) · 700 Bytes
/
Dockerfile
File metadata and controls
28 lines (17 loc) · 700 Bytes
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
FROM debian
USER root
ENV TERM xterm
RUN apt-get update && \
apt-get -qy install git-core php5-cli php5-common php5-gd php5-mcrypt php-pear libncursesw5-dev php5-dev make && \
apt-get clean
RUN pecl install ncurses
ENV HOME /home/slacker
WORKDIR $HOME
RUN git clone https://github.com/TidalLabs/Slacker.git && \
cd $HOME/Slacker && make install
RUN cp $HOME/Slacker/slacker.php /usr/local/bin/slacker && \
chmod a+x /usr/local/bin/slacker
RUN echo "extension=ncurses.so" >> /etc/php5/cli/php.ini
RUN sed -e '/^[^;]*allow_url_fopen/s/=.*$/= On/' -i.bak /etc/php5/cli/php.ini
RUN sed -e '/^[^;]*allow_url_include/s/=.*$/= On/' -i.bak /etc/php5/cli/php.ini
CMD ["slacker"]