2019-09-16 20:33:46 +02:00
|
|
|
# Run weechat in a container
|
|
|
|
#
|
|
|
|
# docker run -it \
|
|
|
|
# -v $HOME/.weechat/home/user/.weechat \
|
|
|
|
# --name weechat \
|
|
|
|
# jess/weechat
|
|
|
|
#
|
|
|
|
|
2017-01-07 02:00:15 +01:00
|
|
|
FROM alpine:latest
|
2015-03-10 07:00:24 +01:00
|
|
|
|
2017-01-07 02:00:15 +01:00
|
|
|
RUN apk add --no-cache \
|
2017-01-09 21:24:20 +01:00
|
|
|
weechat \
|
|
|
|
weechat-perl \
|
2019-09-16 20:33:46 +02:00
|
|
|
weechat-python \
|
|
|
|
python
|
2015-03-10 07:00:24 +01:00
|
|
|
|
2019-09-16 20:33:46 +02:00
|
|
|
ARG RUNTIME_UID
|
|
|
|
ENV RUNTIME_UID ${UID:-1000}
|
2015-03-10 07:00:24 +01:00
|
|
|
ENV HOME /home/user
|
2015-06-05 20:55:25 +02:00
|
|
|
|
2019-09-16 20:33:46 +02:00
|
|
|
RUN adduser -D user -u ${RUNTIME_UID} \
|
2017-01-07 02:00:15 +01:00
|
|
|
&& chown -R user $HOME
|
2015-03-10 07:00:24 +01:00
|
|
|
|
|
|
|
WORKDIR $HOME
|
|
|
|
USER user
|
|
|
|
|
2017-01-07 02:00:15 +01:00
|
|
|
ENTRYPOINT [ "weechat" ]
|