diff --git a/Dockerfile b/Dockerfile index 9a9e023..aee0608 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,7 @@ RUN apk add --no-cache --virtual .build-deps \ # TODO remove pillow, magic and feedparser when maubot supports installing dependencies COPY . /opt/maubot +COPY ./docker/mbc.sh /usr/local/bin/mbc COPY --from=frontend-builder /frontend/build /opt/maubot/frontend ENV UID=1337 GID=1337 XDG_CONFIG_HOME=/data VOLUME /data diff --git a/Dockerfile.ci b/Dockerfile.ci index 58a91f2..76f3e1c 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -28,6 +28,7 @@ RUN apk add --no-cache --virtual .build-deps \ # TODO remove pillow, magic and feedparser when maubot supports installing dependencies COPY . /opt/maubot +COPY ./docker/mbc.sh /usr/local/bin/mbc ENV UID=1337 GID=1337 XDG_CONFIG_HOME=/data VOLUME /data diff --git a/docker/mbc.sh b/docker/mbc.sh new file mode 100755 index 0000000..bffbd5e --- /dev/null +++ b/docker/mbc.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd /opt/maubot +python3 -m maubot.cli "$@"