Add simple mbc script for docker

This commit is contained in:
Tulir Asokan 2020-02-26 01:04:57 +02:00
parent 265307a870
commit f36827f9cc
3 changed files with 5 additions and 0 deletions

View file

@ -33,6 +33,7 @@ RUN apk add --no-cache --virtual .build-deps \
# TODO remove pillow, magic and feedparser when maubot supports installing dependencies # TODO remove pillow, magic and feedparser when maubot supports installing dependencies
COPY . /opt/maubot COPY . /opt/maubot
COPY ./docker/mbc.sh /usr/local/bin/mbc
COPY --from=frontend-builder /frontend/build /opt/maubot/frontend COPY --from=frontend-builder /frontend/build /opt/maubot/frontend
ENV UID=1337 GID=1337 XDG_CONFIG_HOME=/data ENV UID=1337 GID=1337 XDG_CONFIG_HOME=/data
VOLUME /data VOLUME /data

View file

@ -28,6 +28,7 @@ RUN apk add --no-cache --virtual .build-deps \
# TODO remove pillow, magic and feedparser when maubot supports installing dependencies # TODO remove pillow, magic and feedparser when maubot supports installing dependencies
COPY . /opt/maubot COPY . /opt/maubot
COPY ./docker/mbc.sh /usr/local/bin/mbc
ENV UID=1337 GID=1337 XDG_CONFIG_HOME=/data ENV UID=1337 GID=1337 XDG_CONFIG_HOME=/data
VOLUME /data VOLUME /data

3
docker/mbc.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
cd /opt/maubot
python3 -m maubot.cli "$@"