Fix moving example config
This commit is contained in:
parent
df2f2a896a
commit
e8862ed1a3
2 changed files with 4 additions and 4 deletions
|
@ -52,11 +52,11 @@ RUN apk add --virtual .build-deps python3-dev build-base git \
|
||||||
&& sed -Ei 's/psycopg2-binary.+//' optional-requirements.txt \
|
&& sed -Ei 's/psycopg2-binary.+//' optional-requirements.txt \
|
||||||
&& pip3 install -r requirements.txt -r optional-requirements.txt \
|
&& pip3 install -r requirements.txt -r optional-requirements.txt \
|
||||||
dateparser langdetect python-gitlab pyquery cchardet semver tzlocal cssselect \
|
dateparser langdetect python-gitlab pyquery cchardet semver tzlocal cssselect \
|
||||||
&& apk del .build-deps \
|
&& apk del .build-deps
|
||||||
&& cp maubot/example-config.yaml . && rm -rf maubot
|
|
||||||
# TODO also remove dateparser, langdetect and pyquery when maubot supports installing dependencies
|
# TODO also remove dateparser, langdetect and pyquery when maubot supports installing dependencies
|
||||||
|
|
||||||
COPY . /opt/maubot
|
COPY . /opt/maubot
|
||||||
|
RUN cp maubot/example-config.yaml .
|
||||||
COPY ./docker/mbc.sh /usr/local/bin/mbc
|
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
|
||||||
|
|
|
@ -46,11 +46,11 @@ RUN apk add --virtual .build-deps python3-dev build-base git \
|
||||||
&& sed -Ei 's/psycopg2-binary.+//' optional-requirements.txt \
|
&& sed -Ei 's/psycopg2-binary.+//' optional-requirements.txt \
|
||||||
&& pip3 install -r requirements.txt -r optional-requirements.txt \
|
&& pip3 install -r requirements.txt -r optional-requirements.txt \
|
||||||
dateparser langdetect python-gitlab pyquery cchardet semver tzlocal cssselect \
|
dateparser langdetect python-gitlab pyquery cchardet semver tzlocal cssselect \
|
||||||
&& apk del .build-deps \
|
&& apk del .build-deps
|
||||||
&& cp maubot/example-config.yaml . && rm -rf maubot
|
|
||||||
# TODO also remove dateparser, langdetect and pyquery when maubot supports installing dependencies
|
# TODO also remove dateparser, langdetect and pyquery when maubot supports installing dependencies
|
||||||
|
|
||||||
COPY . /opt/maubot
|
COPY . /opt/maubot
|
||||||
|
RUN cp /opt/maubot/maubot/example-config.yaml /opt/maubot
|
||||||
COPY ./docker/mbc.sh /usr/local/bin/mbc
|
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
|
||||||
|
|
Loading…
Reference in a new issue