make running in image removed - dependency installation fixed

This commit is contained in:
pseusys
2023-02-11 17:48:28 +01:00
parent 1dd40197e3
commit 469c8eb753
2 changed files with 3 additions and 6 deletions

View File

@@ -6,9 +6,9 @@ ENV PYTHONDONTWRITEBYTECODE 1
WORKDIR ./waka-readme-stats WORKDIR ./waka-readme-stats
ADD requirements.txt ./requirements.txt 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/* ./ ADD sources/* ./
ENTRYPOINT python3 ./main.py ENTRYPOINT python3 ./main.py

View File

@@ -26,11 +26,8 @@ node_modules:
npm i npm@next-8 npm i npm@next-8
npm i vega vega-lite vega-cli canvas npm i vega vega-lite vega-cli canvas
dependencies: venv node_modules
.PHONY: dependencies
run-locally: venv node_modules
run-locally: dependencies
@ # Run action locally @ # Run action locally
source <(cat .env.example | sed 's/=/=/' | sed 's/^/export /') && python3 ./sources/main.py source <(cat .env.example | sed 's/=/=/' | sed 's/^/export /') && python3 ./sources/main.py
.PHONY: run-locally .PHONY: run-locally