forked from jyio/botbrew
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 820 Bytes
/
Dockerfile
File metadata and controls
30 lines (20 loc) · 820 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
29
30
FROM debian:latest
MAINTAINER DeveloppSoft <developpsoft@gmail.com>
RUN apt update
RUN apt install --yes build-essential python python-yaml cmake bison flex git autoconf automake libtool antlr wget fakeroot ccache zip curl
RUN curl -sSL https://get.rvm.io | bash
RUN bash -l -c "rvm use 1.9.3-p125 --install"
RUN update-ca-certificates -f
RUN wget "http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip" -O /tmp/ndk.zip
WORKDIR /root
RUN unzip /tmp/ndk.zip
RUN mv android-ndk-* .ndk
ADD ./ ./botbrew/
WORKDIR ./botbrew
RUN echo 'G_MAINTAINER="docker"\nG_NDKPATH="../.ndk"' > config.sh
RUN ./botbrew toolchain
RUN ./botbrew makefile > Makefile
RUN echo 'export PYTHONPATH="/usr/lib/python2.7/dist-packages"' > /start.sh
RUN echo '/bin/bash' >> /start.sh
RUN chmod +x /start.sh
CMD /start.sh