File tree Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Original file line number Diff line number Diff line change 1
1
ARG JITSI_REPO=jitsi
2
+
3
+ FROM ${JITSI_REPO}/base as builder
4
+
5
+ RUN \
6
+ apt-dpkg-wrap apt-get update \
7
+ && apt-dpkg-wrap apt-get install -y \
8
+ lua5.2 \
9
+ liblua5.2-dev \
10
+ libsasl2-dev \
11
+ libssl1.0-dev \
12
+ luarocks \
13
+ git \
14
+ gcc \
15
+ && luarocks install cyrussasl 1.1.0-1 \
16
+ && luarocks install lua-cjson 2.1.0-1 \
17
+ && luarocks install luajwtjitsi 1.3-7 \
18
+ && luarocks install net-url 0.9-1
19
+
2
20
FROM ${JITSI_REPO}/base
3
21
4
22
ADD https://prosody.im/files/prosody-debian-packages.key /tmp/prosody.key
@@ -14,28 +32,10 @@ RUN \
14
32
sasl2-bin \
15
33
libsasl2-modules-ldap \
16
34
lua-basexx \
17
- liblua5.2-dev \
18
- libsasl2-dev \
19
- libssl1.0-dev \
20
- luarocks \
21
- git \
22
- gcc \
23
35
patch \
24
36
&& apt-dpkg-wrap apt-get install -t stretch-backports -y \
25
37
lua-ldap \
26
38
lua-sec \
27
- && luarocks install cyrussasl 1.1.0-1 \
28
- && luarocks install lua-cjson 2.1.0-1 \
29
- && luarocks install luajwtjitsi 1.3-7 \
30
- && luarocks install net-url 0.9-1 \
31
- && apt-dpkg-wrap apt-get remove --purge -y \
32
- git \
33
- gcc \
34
- luarocks \
35
- libsasl2-dev \
36
- libssl1.0-dev \
37
- liblua5.2-dev \
38
- && apt-dpkg-wrap apt-get autoremove --purge -y \
39
39
&& apt-cleanup \
40
40
&& rm -rf /etc/prosody
41
41
@@ -51,6 +51,9 @@ RUN patch -d /usr/lib/prosody/modules/muc -p0 < /prosody-plugins/muc_owner_allow
51
51
52
52
COPY rootfs/ /
53
53
54
+ COPY --from=builder /usr/local/lib/lua /usr/local/lib/lua
55
+ COPY --from=builder /usr/local/share/lua /usr/local/share/lua
56
+
54
57
EXPOSE 5222 5269 5347 5280
55
58
56
59
VOLUME ["/config" , "/prosody-plugins-custom" ]
You can’t perform that action at this time.
0 commit comments