Makefile added; targets for local action run and image building added; workflow for image building and publishing added; image building in action replaced with container pulling

This commit is contained in:
pseusys
2023-01-13 05:05:13 +04:00
parent a21c4d3fcd
commit d6560d8594
10 changed files with 3258 additions and 3178 deletions

View File

@@ -1,18 +1,14 @@
FROM nikolaik/python-nodejs:python3.9-nodejs16
ADD requirements.txt /requirements.txt
ADD main.py /main.py
ADD loc.py /loc.py
ADD make_bar_graph.py /make_bar_graph.py
ADD colors.json /colors.json
ADD translation.json /translation.json
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1
ENV PATH "$PATH:/home/root/.npm-global/bin"
WORKDIR ./waka-readme-stats
RUN python -m pip install --upgrade pip wheel setuptools
RUN pip install -r requirements.txt
RUN npm -g config set user root
RUN npm i -g npm@next-8
RUN npm i -g vega vega-lite vega-cli canvas
ADD requirements.txt ./requirements.txt
ADD Makefile ./Makefile
ADD sources/* ./
ENTRYPOINT ["python", "/main.py"]
RUN make dependencies
ENTRYPOINT python3 ./main.py