12 Commits

Author SHA1 Message Date
ecb9fe6b33 fix: Add entrypoint script to fix volume permissions at runtime
- Add docker-entrypoint.sh that runs as root to fix mounted volume permissions
- Creates required subdirectories (logs, users, packages) before app starts
- Copies default config.js if missing
- Drops to node user via su-exec before running the app
- Update Dockerfile to use entrypoint and install su-exec
- Update docker-compose.yml with UID/GID mapping and separate volume mounts
- Wrap filesystem operations in try-catch to handle permission errors gracefully
2025-12-29 19:02:58 -08:00
13164b89aa feat: Lock webchat to irc.supernets.org with simplified connect form
This commit configures Hard Lounge as a dedicated webchat client for
SuperNETs IRC, requiring only a nickname to connect.

- Set `public: true` to enable public mode (no user accounts required)
- Set `lockNetwork: true` to lock connections to irc.supernets.org only

Users will automatically connect to irc.supernets.org:6697 (TLS) and
join #superbowl upon entering a nickname.

- Added simplified connect form for public + lockNetwork mode
- Form now shows only the nickname field when both settings are enabled
- Hidden fields: server, port, TLS, username, realname, channels,
  leave message, authentication options
- Added CSS styling for proper spacing on simplified form

- Pinned to Node 20 Alpine (from lts-alpine) for compatibility
- Added py3-setuptools to fix distutils module error with Python 3.12
- Fixed file ownership with --chown=node:node on COPY commands
- Moved USER node directive after COPY to fix permission issues
- Pre-create /var/opt/hardlounge directory with correct ownership
2025-12-29 18:36:50 -08:00
hgw
4c87370e64 Cache yarn install during docker builds to improve subsequent build speeds 2023-12-10 04:51:32 +00:00
hgw
020e5d3490 Rebrand to Hard Lounge 2023-10-09 10:28:14 +00:00
hgw
000c009eef Change dockerfile to build from local source 2023-10-05 11:28:41 +00:00
hgw
9b38d85adc Reduce image size 2023-10-05 09:27:17 +00:00
hgw
03bf4bb755 The original docker implementation is idiotic, this is not 2023-10-05 08:52:01 +00:00
Jérémie Astori
0777668eec Remove Docker-related files
They have been moved to https://github.com/thelounge/docker-lounge.
2016-04-28 21:20:05 -04:00
Jérémie Astori
df68a1b8f0 Update docker configuration files with new project name 2016-02-10 05:04:09 +00:00
Ben Evans
5d8669112d Added @Xe's tips on the Dockerfile
https://github.com/Shuo-IRC/Shuo/pull/87
2015-10-24 20:45:44 +01:00
Ben Evans
7c54a97fad Expressive Entrypoint in Dockerfile
Updated to https://github.com/erming/shout/pull/477#issuecomment-143636577 comment
2015-09-29 00:24:47 +01:00
Ben Evans
3982aac845 Add a Dockerfile
Building:

    docker build -t shout .

Running:

    docker run --name shout -d --publish 9000:9000 shout
2015-09-25 18:34:27 +01:00