mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
f877a72e83
This commit contains a fairly large diff for a fairly small change: moving the `config/common` directory to `host/base` to better reflect its intended use, and promoting `config/service` to the root directory. These changes unlock some improvements in `coreos-home-server-update` processes, which will (assuming `/etc/coreos-home-server/base` exists) keep host-wide systemd services in sync in addition to service-specific ones. Changes have been make to the `Makefile` and a few other places where `config/common` was referenced, but most of this work is renames that are not intended to break compatibility with new or running servers.
30 lines
1.1 KiB
Docker
30 lines
1.1 KiB
Docker
FROM docker.io/debian:bullseye-slim
|
|
ARG VERSION=0.11.12
|
|
ARG MODULES_VERSION=bd0a1f917d98
|
|
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
|
curl mercurial gnupg ca-certificates apt-transport-https netcat-traditional
|
|
|
|
RUN addgroup --system --gid 10000 prosody
|
|
RUN adduser --system --uid 10000 --ingroup prosody --home /var/lib/prosody prosody
|
|
|
|
RUN echo "deb https://packages.prosody.im/debian bullseye main" > /etc/apt/sources.list.d/prosody.list && \
|
|
echo "deb-src https://packages.prosody.im/debian bullseye main" >> /etc/apt/sources.list.d/prosody.list && \
|
|
curl -o - https://prosody.im/files/prosody-debian-packages.key | apt-key add - && \
|
|
apt-get update -y && apt-get install -y --no-install-recommends \
|
|
lua-dbi-mysql lua-event lua-zlib lua-sec lua-luaossl lua-bitop prosody=${VERSION}*
|
|
|
|
RUN mkdir -p /usr/lib/prosody/community-modules && \
|
|
hg clone --rev ${MODULES_VERSION} https://hg.prosody.im/prosody-modules /usr/lib/prosody/community-modules
|
|
|
|
COPY container/config /etc/prosody
|
|
RUN prosodyctl check config
|
|
|
|
VOLUME /var/lib/prosody
|
|
ENV __FLUSH_LOG yes
|
|
|
|
USER prosody
|
|
EXPOSE 5222 5269 5280 5347
|
|
|
|
ENTRYPOINT ["prosody"]
|