/resume

Primary LanguageDockerfile

Resume

This repository allows you to create a self-hosted jsonresume CV / generate your CV with docker. Running instance

Usage

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:

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 ./

Why?

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.