2022-12-10 16:17:35 +00:00
|
|
|
FROM debian:bullseye-slim
|
|
|
|
|
|
|
|
MAINTAINER Prosody Developers <developers@prosody.im>
|
|
|
|
|
|
|
|
ARG PROSODY_PACKAGE=prosody-0.12
|
|
|
|
ARG LUA_PACKAGE=lua5.3
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
RUN apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
extrepo tini \
|
|
|
|
&& extrepo enable prosody \
|
|
|
|
&& apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
${PROSODY_PACKAGE} \
|
|
|
|
${LUA_PACKAGE} \
|
|
|
|
lua-unbound \
|
|
|
|
lua-sec \
|
2022-12-13 17:46:26 +00:00
|
|
|
lua-readline \
|
2022-12-10 16:17:35 +00:00
|
|
|
lua-dbi-sqlite3 \
|
|
|
|
lua-dbi-postgresql \
|
|
|
|
lua-dbi-mysql \
|
|
|
|
luarocks \
|
2023-03-21 17:33:20 +00:00
|
|
|
lib${LUA_PACKAGE}-dev \
|
2023-01-13 23:25:28 +00:00
|
|
|
&& update-alternatives --set lua-interpreter /usr/bin/${LUA_PACKAGE} \
|
2022-12-10 16:17:35 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN mkdir -p /etc/prosody/conf.d /var/run/prosody \
|
|
|
|
&& chown prosody:prosody /etc/prosody/conf.d /var/run/prosody
|
|
|
|
|
|
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod 755 /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/usr/bin/tini", "--", "/entrypoint.sh"]
|
|
|
|
|
|
|
|
COPY ./configs/${PROSODY_PACKAGE}.cfg.lua /etc/prosody/prosody.cfg.lua
|
|
|
|
|
|
|
|
EXPOSE 80 443 5222 5269 5347 5280 5281
|
|
|
|
ENV __FLUSH_LOG yes
|
|
|
|
CMD ["prosody", "-F"]
|