Add UID/GID option and custom config base for docker

Closes #13
This commit is contained in:
Tulir Asokan 2018-11-04 23:05:39 +02:00
parent 2736a1f47f
commit 4bc78996c1
4 changed files with 92 additions and 26 deletions

View file

@ -1,5 +1,8 @@
FROM alpine:3.8
ENV UID=1337 \
GID=1337
COPY . /opt/maubot
WORKDIR /opt/maubot
RUN apk add --no-cache \
@ -9,8 +12,9 @@ RUN apk add --no-cache \
py3-bcrypt \
py3-cffi \
ca-certificates \
su-exec \
&& pip3 install -r requirements.txt
VOLUME /data
CMD ["/opt/maubot/docker-run.sh"]
CMD ["/opt/maubot/docker/run.sh"]