dockerfile added
This commit is contained in:
parent
40763e2333
commit
e8218f6153
31
Dockerfile
Normal file
31
Dockerfile
Normal file
@ -0,0 +1,31 @@
|
||||
FROM alpine:latest
|
||||
|
||||
# Install required packages
|
||||
RUN apk add --no-cache curl nano openssl python3-pip weechat weechat-perl weechat-python
|
||||
|
||||
# Create weechat user
|
||||
RUN adduser -D -h /home/weechat weechat
|
||||
|
||||
# Switch to weechat user
|
||||
USER weechat
|
||||
WORKDIR /home/weechat
|
||||
|
||||
# Create weechat directory structure
|
||||
RUN mkdir -p .weechat/{python/autoload,perl/autoload,logs,tls} && chmod 700 .weechat
|
||||
|
||||
# Copy our local files into the container
|
||||
COPY scripts/python/*.py .weechat/python/autoload/
|
||||
COPY scripts/perl/*.pl .weechat/perl/autoload/
|
||||
COPY alias.conf .weechat/
|
||||
|
||||
# Install Python dependencies for scripts
|
||||
RUN pip3 install --user requests
|
||||
|
||||
# Create fifo for external commands
|
||||
RUN mkfifo .weechat/weechat_fifo
|
||||
|
||||
# Generate SSL certificate
|
||||
RUN openssl req -x509 -new -newkey rsa:4096 -sha256 -days 3650 -nodes -out .weechat/tls/cert.pem -keyout .weechat/tls/cert.pem -subj "/CN=HARDCHATS" && chmod 400 .weechat/tls/cert.pem
|
||||
|
||||
# Start actual weechat client
|
||||
ENTRYPOINT ["weechat"]
|
@ -139,7 +139,6 @@ systemctl --user enable weechat-headless
|
||||
###### Settings
|
||||
```
|
||||
/set buflist.look.mouse_wheel off
|
||||
/set buflist.look.mouse off
|
||||
/set irc.look.buffer_switch_autojoin off
|
||||
/set irc.look.buffer_switch_join on
|
||||
/set irc.look.join_auto_add_chantype on
|
||||
@ -168,8 +167,6 @@ systemctl --user enable weechat-headless
|
||||
|
||||
###### IRC
|
||||
```
|
||||
/set irc.server_default.anti_flood_prio_high 0
|
||||
/set irc.server_default.anti_flood_prio_low 0
|
||||
/set irc.server_default.autorejoin on
|
||||
/set irc.server_default.autorejoin_delay 3
|
||||
/set irc.server_default.command_delay 3
|
||||
|
Loading…
Reference in New Issue
Block a user