This repository allows you to create a self-hosted jsonresume CV / generate your CV with docker. Running instance
Build
docker build -t resume .
Execute nginx with your resume on port 8080
docker run -d -p 8080:8080 resume:latest
# run as a daemon, forward container's port 8080 to host's 8080
Accessible paths:
- localhost:8080/ root html resume
- localhost:8080/cv.pdf pdf of your resume
Copy pdf directly from the container
docker cp $(docker create --rm resume:latest):/app/static/cv.pdf ./
# first create (and later remove) the container, because we can not copy from an image. Then copy the /app/static/cv.pdf to the current directory ./
That's a good question. First of all, I wanted to continue using my current jsonresume, however, I didn't like the approach of installing all the deprecated npm packages to my server and hope. With multistage Dockerfile, I can generate static files in an image with all the requirements and later serve just what is needed in a lightweight image. Besides, I'd like to switch to docker anyway, as I find it more convenient to maintain.