dockerfiles/weechat/Dockerfile
Nate Catelli df376e102b Fix missing python dependency and add some conveniences to weechat (#498)
* Switch user from a system user to a regular user

* Add a run string

* Add python dependency for weechat-python.
2019-09-16 11:33:46 -07:00

28 lines
408 B
Docker

# Run weechat in a container
#
# docker run -it \
# -v $HOME/.weechat/home/user/.weechat \
# --name weechat \
# jess/weechat
#
FROM alpine:latest
RUN apk add --no-cache \
weechat \
weechat-perl \
weechat-python \
python
ARG RUNTIME_UID
ENV RUNTIME_UID ${UID:-1000}
ENV HOME /home/user
RUN adduser -D user -u ${RUNTIME_UID} \
&& chown -R user $HOME
WORKDIR $HOME
USER user
ENTRYPOINT [ "weechat" ]