41 Commits

Author SHA1 Message Date
Kim Alvefur 370bca28c0 Add option to turn on DANE
Nice to have, especially with the recent Let's Encrypt debacle
2026-03-03 20:21:59 +01:00
Kim Alvefur fddb859136 Dockerfile: Explicitly add ca-certificates to fix TLS verification
Must have been implicitly depended on by something before
2026-03-03 17:54:37 +01:00
Kim Alvefur 348231e50b Dockerfile: Include Bootstrap4 and jQuery to ease enabling web invites
Suggested in the chat
2026-02-27 16:22:02 +01:00
Kim Alvefur fc3d7b920c Dockerfile: Change default package name to current stable branch 2026-02-27 16:21:33 +01:00
Kim Alvefur 1248e97f0c Switch base images to Debian 13 "trixie" 2026-02-27 16:08:29 +01:00
Kim Alvefur 3e85e9d2b6 Dockerfile: Switch to modern way of adding Prosody repo
60MB image size reduction
2026-02-27 16:03:53 +01:00
Matthew Wild 601945cb85 Dockerfile: Add BUILD_ID build argument
This can be used to break the cache when we know the upstream package has
changed. In CI we will probably just put the build number here.

Even though it is not currently exposed anywhere, it is available as an
environment variable in all RUN commands following the ARG. This should be
enough to avoid reusing cached layers between builds.
2025-02-18 12:27:36 +00:00
Kim Alvefur 8ed20cbe8f Dockerfile: Switch to Lua 5.4 for improved performance
Prosody on Lua 5.4 on Debian 12 should be well tested by now
2025-02-15 15:29:51 +01:00
Matthew Wild d15c46949a Move ng/* to top-level, replacing old build files 2025-02-13 18:15:55 +00:00
Alexander Dahl 83556a4c5a Revert "Use tini as PID 1 inside the container"
This reverts commit 31d6d84433.

While tini successfully forwards signals, this leads to `runuser`
killing prosody now. The container does terminate in 10 seconds, so
Docker is happy and you could argue that actually fixes #68, but it's no
graceful shutdown. The revert is done because it's easier to apply a
real fix without tini.
2021-03-27 16:58:09 +01:00
Kim Alvefur 52cd642d38 Remove inaccurate comment
It says "from debian" right beneath it!
2021-03-20 12:32:20 +01:00
Jonas Schäfer 31d6d84433 Use tini as PID 1 inside the container
tini [1] is a minimalistic PID 1 process. It correctly handles
the special jobs which PID 1 (or a reaper process in general)
needs to take care of in addition to correctly processing the
relevant signals.

Fixes #68.

   [1]: https://github.com/krallin/tini
2021-03-20 12:30:27 +01:00
Kim Alvefur 4878e32010 Remove our repo
Debian versions of dependencies should be fine now
2020-02-14 00:50:18 +01:00
Kim Alvefur 95a9d24b76 Run with same UID as datadir owner
This should fix problems with owner/uid mismatch when an existing
prosody data directory is mounted into the container

Closes #39
2020-02-13 01:10:36 +01:00
Kim Alvefur 47d22ada68 Start prosody with the new flag to force foreground operation 2020-02-13 01:08:16 +01:00
Kim Alvefur 80c6ffc362 Install procps, dependency of recent packages 2020-02-12 19:55:34 +01:00
Kim Alvefur f2c1afeabe Add libicu needed by trunk nightly builds (fixes #59) 2020-02-12 19:52:19 +01:00
Kim Alvefur 3a47a006bc Switch base image to Debian 10 (closes #61)
OpenSSL version with TLS 1.3 support
2020-02-12 19:32:28 +01:00
Matthew Wild 1fa2fb60ce Ensure prosody package key is world-readable (so apt user can read it) 2019-01-14 12:19:03 +00:00
Matthew Wild 21b5e2d19b Create directory for pidfile (usually created by init script) 2019-01-14 11:43:13 +00:00
Matthew Wild 4de30316aa Add lua5.2 for compatibility with 0.11 packages 2019-01-14 11:42:51 +00:00
Matthew Wild 72bf20f29f Update Dockerfile to Debian stretch 2019-01-14 11:28:19 +00:00
Kim Alvefur b186acf8ff Remove redundant LuaExpat package 2017-10-20 03:40:34 +02:00
Kim Alvefur 01bbe56547 Explicitly install some base requirements
These are in the Prosody debian package dependencies.
2017-10-20 03:39:45 +02:00
Christian Wolff df16f5af7e Install ca-certificates package to fix s2s SSL errors. 2016-08-08 12:58:44 +02:00
Matthew Wild c095ddd323 Dockerfile: chmod 755 the entrypoint, so we don't depend on the permissions of the build system, fixes #27 2016-03-11 15:51:35 +00:00
Lloyd Watkin b31d7c913e Make entrypoint.sh executable
Fixes #27
cc @mwild1
2016-03-09 08:52:23 +00:00
Matthew Wild d346e0912e Install lua-bitop, fixes #24 2016-02-04 19:24:01 +00:00
Matthew Wild bed0d8e598 Run as user 'prosody', and run prosody instead of prosodyctl. Also set __FLUSH_LOG environment variable to tell Prosody it needs to flush its logs after writing. Fixes #23 and fixes #25. 2016-02-04 19:17:11 +00:00
Sam Whited 2b420fa628 Remove duplicate lua-zlib install line. 2015-10-23 13:50:25 -05:00
Kevin Carter 1b1f0ed951 Cleanup the Dockerfile
- Reduce the build steps to reduce the number and size of intermediate images
- Set the logging to stdout by default
- Remove default user create, but still allow optional user creation
- Fix entrypoint command setup
2014-12-07 20:02:23 -07:00
Lloyd Watkin 712f293389 Use a bash script to start prosody 2014-11-25 14:54:40 +00:00
Lloyd Watkin 1d8b665909 Add 5281 as exposed port 2014-11-14 14:26:12 +00:00
Lloyd Watkin 5d0c401f38 Daemonize = false 2014-11-14 13:36:44 +00:00
Lloyd Watkin 329202e73b Install more recent libssl 2014-11-14 13:36:35 +00:00
Lloyd Watkin 2f2ae3b1d4 Update the entrypoint 2014-11-13 20:33:22 +00:00
Lloyd Watkin a81e8d74f9 Moved into main instal 2014-11-13 20:32:54 +00:00
Lloyd Watkin 3c732b2f5a Copy 'deb' file into place 2014-11-13 20:32:41 +00:00
Lloyd Watkin 542599556b Instal more packages 2014-11-13 20:32:00 +00:00
Lloyd Watkin 4e6069cf97 Do easier deployments, add README 2014-11-13 15:21:28 +00:00
Lloyd Watkin 87083022eb Add dockerfile 2014-11-13 10:42:44 +00:00