aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 0c130649d8243fa99cceb2206082181a71b58460 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Usage:
# 	Building
# 		docker build -t wee-slack .
#	Running (no saved state)
# 		docker run -it \
#			-v /etc/localtime:/etc/localtime:ro \ # for your time
# 			wee-slack
# 	Running (saved state)
# 		docker run -it \
#			-v /etc/localtime:/etc/localtime:ro \ # for your time
# 			-v "${HOME}/.weechat:/home/user/.weechat" \
# 			wee-slack
#
FROM alpine:latest

RUN apk add --no-cache \
	ca-certificates \
	python3 \
	py-pip \
	weechat \
	weechat-perl \
	weechat-python

RUN pip install websocket-client

ENV HOME /home/user

COPY wee_slack.py /home/user/.weechat/python/autoload/wee_slack.py

RUN adduser -S user -h $HOME \
	&& chown -R user $HOME

WORKDIR $HOME
USER user

ENTRYPOINT [ "weechat" ]