dockerfiles/weechat/Dockerfile

28 lines
408 B
Docker
Raw Normal View History

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