You've already forked wakapi-readme-stats
Merge pull request #175 from aravindvnair99/docker
Fix missing peer dependency of vega-lite and (not in PATH env variable)
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,20 +1,16 @@
|
|||||||
FROM nikolaik/python-nodejs:python3.8-nodejs12
|
FROM nikolaik/python-nodejs:python3.8-nodejs12
|
||||||
|
|
||||||
# Install dependencies.
|
|
||||||
ADD requirements.txt /requirements.txt
|
ADD requirements.txt /requirements.txt
|
||||||
ADD main.py /main.py
|
ADD main.py /main.py
|
||||||
ADD loc.py /loc.py
|
ADD loc.py /loc.py
|
||||||
ADD make_bar_graph.py /make_bar_graph.py
|
ADD make_bar_graph.py /make_bar_graph.py
|
||||||
ADD colors.json /colors.json
|
ADD colors.json /colors.json
|
||||||
ADD translation.json /translation.json
|
ADD translation.json /translation.json
|
||||||
|
|
||||||
|
ENV PATH "$PATH:/home/root/.npm-global/bin"
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
|
|
||||||
|
|
||||||
RUN npm -g config set user root
|
RUN npm -g config set user root
|
||||||
|
RUN npm i -g vega vega-lite vega-cli canvas
|
||||||
RUN npm install -g vega@^5.19.1
|
|
||||||
|
|
||||||
RUN npm install -g vega-lite vega-cli canvas
|
|
||||||
|
|
||||||
ENTRYPOINT ["python", "/main.py"]
|
ENTRYPOINT ["python", "/main.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user