mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Add simple mbc script for docker
This commit is contained in:
parent
265307a870
commit
f36827f9cc
@ -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
|
||||||
|
@ -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
3
docker/mbc.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd /opt/maubot
|
||||||
|
python3 -m maubot.cli "$@"
|
Loading…
Reference in New Issue
Block a user