37 lines
1.1 KiB
Docker
37 lines
1.1 KiB
Docker
FROM debian:bookworm-slim
|
|
|
|
MAINTAINER Prosody Developers <developers@prosody.im>
|
|
|
|
ARG PROSODY_PACKAGE=prosody-0.12
|
|
ARG LUA_PACKAGE=lua5.3
|
|
|
|
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 \
|
|
lua-readline \
|
|
lua-dbi-sqlite3 \
|
|
lua-dbi-postgresql \
|
|
lua-dbi-mysql \
|
|
lua-ldap \
|
|
luarocks \
|
|
lib${LUA_PACKAGE}-dev \
|
|
&& update-alternatives --set lua-interpreter /usr/bin/${LUA_PACKAGE} \
|
|
&& 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"]
|
|
|
|
EXPOSE 80 443 5222 5269 5347 5280 5281
|
|
ENV __FLUSH_LOG yes
|
|
CMD ["prosody", "-F"]
|