From 469c8eb753a3aca1139deff8b8ecdd7ab8e61ba4 Mon Sep 17 00:00:00 2001 From: pseusys Date: Sat, 11 Feb 2023 17:48:28 +0100 Subject: [PATCH] make running in image removed - dependency installation fixed --- Dockerfile | 4 ++-- Makefile | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1844772..dc3951f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,9 @@ ENV PYTHONDONTWRITEBYTECODE 1 WORKDIR ./waka-readme-stats ADD requirements.txt ./requirements.txt -ADD Makefile ./Makefile +RUN pip install --upgrade pip && pip install -r requirements.txt +RUN npm i npm@next-8 && npm i vega vega-lite vega-cli canvas -RUN make dependencies ADD sources/* ./ ENTRYPOINT python3 ./main.py diff --git a/Makefile b/Makefile index a8a2044..3cbd0ec 100644 --- a/Makefile +++ b/Makefile @@ -26,11 +26,8 @@ node_modules: npm i npm@next-8 npm i vega vega-lite vega-cli canvas -dependencies: venv node_modules -.PHONY: dependencies - -run-locally: dependencies +run-locally: venv node_modules @ # Run action locally source <(cat .env.example | sed 's/=/=/' | sed 's/^/export /') && python3 ./sources/main.py .PHONY: run-locally