From 2f2475985d98f0fc2de53530db23ddbd246f9808 Mon Sep 17 00:00:00 2001 From: Mary Date: Thu, 9 Mar 2023 23:19:53 +0100 Subject: [PATCH] Fix module support --- Dockerfile | 4 ++-- robocop_ng/{__init__.py => __main__.py} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename robocop_ng/{__init__.py => __main__.py} (100%) diff --git a/Dockerfile b/Dockerfile index b5b27db..47e6344 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,6 @@ COPY poetry.lock pyproject.toml ./ RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev cargo && pip install --no-cache-dir poetry && poetry config virtualenvs.create false && poetry install --no-root --no-interaction --no-ansi -vvv && apk del gcc musl-dev python3-dev libffi-dev openssl-dev cargo COPY . . -WORKDIR /usr/src/app/robocop_ng +WORKDIR /usr/src/app -CMD [ "python", "./__init__.py" ] +CMD [ "python", "-m", "robocop_ng" ] diff --git a/robocop_ng/__init__.py b/robocop_ng/__main__.py similarity index 100% rename from robocop_ng/__init__.py rename to robocop_ng/__main__.py