diff --git a/python.Dockerfile b/python.Dockerfile index 8978711..c5a3d0f 100644 --- a/python.Dockerfile +++ b/python.Dockerfile @@ -11,4 +11,4 @@ COPY *.py /app COPY *.joblib /app ENTRYPOINT ["conda", "run", "-n", "eyra-rank", "python", "/app/run.py"] -CMD ["predict", "/data/fake_data.csv"] \ No newline at end of file +CMD [] \ No newline at end of file diff --git a/run.py b/run.py index 81d235b..ec4ea50 100644 --- a/run.py +++ b/run.py @@ -66,5 +66,10 @@ def predict(data_path, background_data_path, output): if __name__ == "__main__": + import sys + + print("Forced error") + sys.exit(1) + args = parser.parse_args() predict(args.data_path, args.background_data_path, args.output)