Thu, 22 Jun 2023 21:31:56 +0100
http: Add some helpful comments regarding auth/CSRF
0 | 1 | #################################### |
13
763288302cf0
Dockerfile: Bump Debian and Prosody versions
Matthew Wild <mwild1@gmail.com>
parents:
9
diff
changeset
|
2 | FROM debian:bookworm-slim as build |
0 | 3 | |
4 | MAINTAINER Matthew Wild <mwild1@gmail.com> | |
5 | ||
6 | RUN apt-get update \ | |
7 | && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
8 | lua5.2 \ | |
9 | liblua5.2-dev \ | |
10 | libidn11-dev \ | |
3
16c9e2363135
Pin to latest Prosody trunk revision (eventually aiming for 0.12)
Matthew Wild <mwild1@gmail.com>
parents:
2
diff
changeset
|
11 | libicu-dev \ |
0 | 12 | libssl-dev \ |
1 | 13 | libunbound-dev \ |
0 | 14 | build-essential \ |
15 | && rm -rf /var/lib/apt/lists/* | |
16 | ||
17 | WORKDIR /tmp/build | |
18 | ||
13
763288302cf0
Dockerfile: Bump Debian and Prosody versions
Matthew Wild <mwild1@gmail.com>
parents:
9
diff
changeset
|
19 | ADD https://hg.prosody.im/trunk/archive/59478b295137.tar.gz ./prosody.tar.gz |
0 | 20 | |
21 | RUN tar --strip-components=1 -xzf prosody.tar.gz \ | |
22 | && ./configure && make | |
23 | ||
24 | ADD src/web/ util/ | |
25 | ||
8
0f9aea96d446
Bump lua-unbound from 0.5 to 1.0.0
Matthew Wild <mwild1@gmail.com>
parents:
6
diff
changeset
|
26 | ADD https://code.zash.se/dl/luaunbound/luaunbound-1.0.0.tar.gz ./luaunbound-1.0.0.tar.gz |
1 | 27 | |
8
0f9aea96d446
Bump lua-unbound from 0.5 to 1.0.0
Matthew Wild <mwild1@gmail.com>
parents:
6
diff
changeset
|
28 | RUN tar -xzf luaunbound-1.0.0.tar.gz \ |
0f9aea96d446
Bump lua-unbound from 0.5 to 1.0.0
Matthew Wild <mwild1@gmail.com>
parents:
6
diff
changeset
|
29 | && make -C luaunbound-1.0.0 |
1 | 30 | |
0 | 31 | ############################ |
13
763288302cf0
Dockerfile: Bump Debian and Prosody versions
Matthew Wild <mwild1@gmail.com>
parents:
9
diff
changeset
|
32 | FROM debian:bookworm-slim |
0 | 33 | |
34 | RUN apt-get update \ | |
35 | && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
36 | tini \ | |
37 | lua5.2 \ | |
38 | lua-cjson \ | |
39 | lua-expat \ | |
40 | lua-filesystem \ | |
13
763288302cf0
Dockerfile: Bump Debian and Prosody versions
Matthew Wild <mwild1@gmail.com>
parents:
9
diff
changeset
|
41 | lua-geoip \ |
0 | 42 | lua-sec \ |
43 | lua-socket \ | |
13
763288302cf0
Dockerfile: Bump Debian and Prosody versions
Matthew Wild <mwild1@gmail.com>
parents:
9
diff
changeset
|
44 | libidn12 \ |
763288302cf0
Dockerfile: Bump Debian and Prosody versions
Matthew Wild <mwild1@gmail.com>
parents:
9
diff
changeset
|
45 | libicu72 \ |
0 | 46 | lua-dbi-postgresql \ |
1 | 47 | libunbound8 \ |
13
763288302cf0
Dockerfile: Bump Debian and Prosody versions
Matthew Wild <mwild1@gmail.com>
parents:
9
diff
changeset
|
48 | ca-certificates \ |
763288302cf0
Dockerfile: Bump Debian and Prosody versions
Matthew Wild <mwild1@gmail.com>
parents:
9
diff
changeset
|
49 | geoip-database \ |
0 | 50 | && rm -rf /var/lib/apt/lists/* |
51 | ||
52 | COPY --from=build /tmp/build/util /usr/local/lib/lua-web-app/util | |
53 | COPY --from=build /tmp/build/net /usr/local/lib/lua-web-app/net | |
8
0f9aea96d446
Bump lua-unbound from 0.5 to 1.0.0
Matthew Wild <mwild1@gmail.com>
parents:
6
diff
changeset
|
54 | COPY --from=build /tmp/build/luaunbound-1.0.0/lunbound.so /usr/local/lib/lua/5.2/lunbound.so |
0 | 55 | |
56 | ENV LUA_WEB_APP_FRAMEWORK /usr/local/lib/lua-web-app | |
57 | ||
58 | ADD src/ /usr/local/lib/lua-web-app | |
59 | ||
60 | WORKDIR /opt | |
61 | ||
62 | ADD default-app/html ./html | |
63 | ADD default-app/app ./app | |
64 | ||
65 | ADD config.dist.lua /etc/app/config.lua | |
66 | ||
67 | VOLUME /var/lib/app | |
68 | ||
69 | ENV LISTEN_INTERFACE * | |
70 | ENV LISTEN_PORT 8007 | |
71 | EXPOSE 8007 | |
72 | ||
73 | ENTRYPOINT ["/usr/bin/tini"] | |
74 | CMD ["/usr/bin/lua5.2", "/usr/local/lib/lua-web-app/main.lua", "/etc/app/config.lua"] |