resume-cli
resume-cli copied to clipboard
Running through docker
Hey!
Trying to install resume-cli through docker but getting some permission errors on installing resume-cli
.
Dockerfile:
FROM python:3.7-slim-buster
RUN apt-get update
RUN apt-get install -y curl
SHELL ["/bin/bash", "--login", "-c"]
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
RUN nvm install 15.13.0
RUN npm install -g resume-cli --unsafe-perm=true --allow-root
RUN npm install -g jsonresume-theme-paper
Error:
npm ERR! code 127
npm ERR! path /root/.nvm/versions/node/v15.13.0/lib/node_modules/resume-cli/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! sh: 1: node: Permission denied
btw this RUN npm install -g jsonresume-theme-paper
runs normally without permission error.
Any idea how to overpass that without removing -g
?
What do you need when running on docker ? generate HTML or PDF? because your error message including puppeteer
Ideal would be both, but I can see that generating PDF is buggy(from 'issues' I can see it is well known that pdf has some issues). I used FROM node
image, among with ENV RESUME_PUPPETEER_NO_SANDBOX=1
to overpass the puppeteer error. If you get any other way I would appreciate if you share here. thanks.
Actually, if you want building PDF i really suggest you given up this tools.
I just complete auto deploy HTML and PDF when CI pass on master recently
and turn out i removed resume-cli
from my repo for below reasons:
https://github.com/davidNHK/resume.json/pull/26
I would suggest you try get started with docker-puppeteer if you insist.
Thanks @davidNHK , I will have a look in your solution and help my self with it :+1: