docker – Blame information for rev 35
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
34 | office | 1 | FROM debian:bookworm-slim |
2 | |||
3 | # update package manager |
||
4 | RUN apt-get update -y && \ |
||
5 | apt-get upgrade -y && \ |
||
6 | apt-get dist-upgrade -y && \ |
||
7 | apt-get -y autoremove && \ |
||
8 | apt-get clean |
||
9 | |||
10 | # install preliminary packages |
||
11 | RUN apt-get install -y \ |
||
12 | coreutils \ |
||
13 | bash \ |
||
14 | curl \ |
||
15 | ca-certificates \ |
||
16 | sharutils \ |
||
35 | office | 17 | bsdiff \ |
18 | patch |
||
34 | office | 19 | |
20 | # create the patches (from https://grimore.org/cracks/mmonit/4.3.1) |
||
21 | COPY patches/mmonit.bsdiff.uue /tmp/mmonit.bsdiff.uue |
||
35 | office | 22 | COPY patches/index.csp.diff /tmp/index.csp.diff |
34 | office | 23 | |
24 | # compile |
||
25 | RUN mkdir -p /opt && \ |
||
26 | curl -o /opt/mmonit.tar.gz "https://mmonit.com/dist/mmonit-4.3.1-linux-x64.tar.gz" && \ |
||
27 | cd /opt && \ |
||
28 | tar -vxf mmonit.tar.gz && \ |
||
29 | rm /opt/mmonit.tar.gz && \ |
||
30 | ln -sf mmonit-4.3.1 mmonit && \ |
||
31 | echo "Patching mmonit..." && \ |
||
32 | uudecode -co /tmp/mmonit.bsdiff /tmp/mmonit.bsdiff.uue && \ |
||
33 | bspatch /opt/mmonit/bin/mmonit /tmp/mmonit /tmp/mmonit.bsdiff && \ |
||
35 | office | 34 | mv /tmp/mmonit /opt/mmonit/bin/ && \ |
35 | chmod +x /opt/mmonit/bin/mmonit && \ |
||
36 | rm /tmp/*.bsdiff* && \ |
||
34 | office | 37 | echo "Patching admin page..." && \ |
35 | office | 38 | cd /opt/mmonit/docroot/admin/general && \ |
39 | ls -l && \ |
||
40 | cat /tmp/index.csp.diff | patch -p0 && \ |
||
41 | rm /tmp/index.csp.diff |
||
34 | office | 42 | |
43 | # remove packages that will not be used |
||
44 | WORKDIR / |
||
45 | RUN apt-get purge -y \ |
||
46 | curl \ |
||
47 | git \ |
||
48 | sharutils \ |
||
35 | office | 49 | bsdiff \ |
50 | patch && \ |
||
34 | office | 51 | apt-get autoremove -y |
52 | |||
53 | EXPOSE 8080 |
||
54 | |||
55 | ENTRYPOINT [ "/opt/mmonit/bin/mmonit", "-d", "-i", "start" ] |