39 lines
1.1 KiB
Docker
39 lines
1.1 KiB
Docker
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 \
|
|
lua-readline \
|
|
lua-dbi-sqlite3 \
|
|
lua-dbi-postgresql \
|
|
lua-dbi-mysql \
|
|
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"]
|
|
|
|
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"]
|