aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-07-07 19:31:37 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2023-07-07 19:31:37 +0200
commit431bd3ce0b0dd43cd99579dccfd35f43b4e64fe4 (patch)
treecb0991cfd4c0b4294ebb31c2c4a24099bb35f7a0 /Dockerfile
parent44eb65f53650167dd2d1a7fe4290e8252edfac31 (diff)
downloadwee-slack-431bd3ce0b0dd43cd99579dccfd35f43b4e64fe4.tar.gz
Update instructions for running docker with shared state
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Dockerfile b/Dockerfile
index 914a92d..aad6d26 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,16 +1,18 @@
# Usage:
# Building
# docker build -t wee-slack .
-# Running (no saved state)
+# Running (no saved state)
# docker run -it \
-# -v /etc/localtime:/etc/localtime:ro \ # for your time
+# -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" \
+# Running (saved state; note that in this case you need wee_slack.py in the ~/.local/share/weechat/python directory outside docker)
+# docker run -it -u $(id -u):$(id -g) \
+# -v /etc/localtime:/etc/localtime:ro \ # for your time
+# -v "${HOME}/.config/weechat:/home/user/.config/weechat" \
+# -v "${HOME}/.local/share/weechat:/home/user/.local/share/weechat" \
+# -v "${HOME}/.cache/weechat:/home/user/.cache/weechat" \
# wee-slack
-#
+
FROM alpine:latest
RUN apk add --no-cache \