Files
wakapi-readme-stats/Dockerfile
Alexander Sergeev d20e5f3760 Fix #337
* NPM update removed [because of breaking changes introduced in NPMv9](https://github.com/altair-viz/altair_saver/issues/113), NPMv8 is provided with container [by default](https://hub.docker.com/r/nikolaik/python-nodejs)

* Set `npm` to not go beyond v9 because of https://github.com/altair-viz/altair_saver/issues/113

v9 has a breaking change for our dependency

Co-authored-by: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com>
2023-01-13 00:26:59 +05:30

19 lines
528 B
Docker

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 PATH "$PATH:/home/root/.npm-global/bin"
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
ENTRYPOINT ["python", "/main.py"]