-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
48 lines (36 loc) · 1.19 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
47
48
## fufluns - Copyright 2019-2021 - deroad
FROM alpine:edge
WORKDIR /
RUN apk add --update py-pip wget tar unzip xz bash openjdk11 android-tools
RUN mkdir -p /fufluns || sleep 0
RUN pip install tornado rzpipe wheel apkid urllib3
RUN wget -q https://github.com/rizinorg/rizin/releases/download/v0.4.0/rizin-v0.4.0-static-x86_64.tar.xz -O rizin.tar.xz && \
tar -xvkf rizin.tar.xz && \
rm -rfv rizin.tar.xz \
share/rizin/sigdb/ \
lib/pkgconfig/ \
lib/*.a \
share/man/ \
include/
WORKDIR /usr/local/bin
RUN wget -q https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O apktool && \
chmod +x apktool
RUN wget -q https://github.com/iBotPeaches/Apktool/releases/download/v2.6.1/apktool_2.6.1.jar -O apktool.jar && \
chmod +x apktool.jar
RUN apk del wget tar unzip xz
## copying fufluns
WORKDIR /
COPY ./www/ /fufluns/www
COPY ./android/ /fufluns/android
COPY ./ios/ /fufluns/ios
COPY ./*.py /fufluns/
COPY ./*.sh /fufluns/
COPY ./LICENSE /fufluns/
RUN chmod +x /fufluns/*.sh
## creating the user and setting cmd.
RUN adduser -D user
EXPOSE 8080/tcp
RUN chown -R user /fufluns && \
chgrp -R user /fufluns
USER user
CMD ["/fufluns/fufluns.sh", "8080"]