diff --git a/Dockerfile b/Dockerfile index 0d6bb28..bd27ebe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,11 +52,11 @@ RUN apk add --virtual .build-deps python3-dev build-base git \ && sed -Ei 's/psycopg2-binary.+//' optional-requirements.txt \ && pip3 install -r requirements.txt -r optional-requirements.txt \ dateparser langdetect python-gitlab pyquery cchardet semver tzlocal cssselect \ - && apk del .build-deps \ - && cp maubot/example-config.yaml . && rm -rf maubot + && apk del .build-deps # TODO also remove dateparser, langdetect and pyquery when maubot supports installing dependencies COPY . /opt/maubot +RUN cp maubot/example-config.yaml . 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 diff --git a/Dockerfile.ci b/Dockerfile.ci index 81f8b56..7719d33 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -46,11 +46,11 @@ RUN apk add --virtual .build-deps python3-dev build-base git \ && sed -Ei 's/psycopg2-binary.+//' optional-requirements.txt \ && pip3 install -r requirements.txt -r optional-requirements.txt \ dateparser langdetect python-gitlab pyquery cchardet semver tzlocal cssselect \ - && apk del .build-deps \ - && cp maubot/example-config.yaml . && rm -rf maubot + && apk del .build-deps # TODO also remove dateparser, langdetect and pyquery when maubot supports installing dependencies COPY . /opt/maubot +RUN cp /opt/maubot/maubot/example-config.yaml /opt/maubot COPY ./docker/mbc.sh /usr/local/bin/mbc ENV UID=1337 GID=1337 XDG_CONFIG_HOME=/data VOLUME /data