Add XDG_CONFIG_HOME to docker image so maubot-cli.json is stored in /data

This commit is contained in:
Tulir Asokan 2020-02-26 00:44:54 +02:00
parent 9a777ee451
commit ad93d8347e
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ RUN apk add --no-cache --virtual .build-deps \
COPY . /opt/maubot COPY . /opt/maubot
COPY --from=frontend-builder /frontend/build /opt/maubot/frontend COPY --from=frontend-builder /frontend/build /opt/maubot/frontend
ENV UID=1337 GID=1337 ENV UID=1337 GID=1337 XDG_CONFIG_HOME=/data
VOLUME /data VOLUME /data
CMD ["/opt/maubot/docker/run.sh"] CMD ["/opt/maubot/docker/run.sh"]

View File

@ -28,7 +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
ENV UID=1337 GID=1337 ENV UID=1337 GID=1337 XDG_CONFIG_HOME=/data
VOLUME /data VOLUME /data
CMD ["/opt/maubot/docker/run.sh"] CMD ["/opt/maubot/docker/run.sh"]