diff --git a/Dockerfile b/Dockerfile index 591adfa..30959f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM node:10 AS frontend-builder COPY ./maubot/management/frontend /frontend RUN cd /frontend && yarn --prod && yarn build -FROM alpine:3.8 +FROM alpine:3.9 ENV UID=1337 \ GID=1337 diff --git a/maubot/cli/commands/build.py b/maubot/cli/commands/build.py index 3ab154e..81c7591 100644 --- a/maubot/cli/commands/build.py +++ b/maubot/cli/commands/build.py @@ -88,7 +88,7 @@ def write_plugin(meta: PluginMeta, output: Union[str, IO]) -> None: for module in meta.modules: if os.path.isfile(f"{module}.py"): zip.write(f"{module}.py") - elif os.path.isdir(module): + elif module is not None and os.path.isdir(module): zipdir(zip, module) else: print(Fore.YELLOW + f"Module {module} not found, skipping" + Fore.RESET)