diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fc136d4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM texlive/texlive:latest + +RUN apt-get update && apt-get install -y --no-install-recommends \ + fonts-roboto \ + fonts-adobe-sourcesans3 \ + && rm -rf /var/lib/apt/lists/* + +RUN luaotfload-tool --update diff --git a/README.md b/README.md index 8319850..7353262 100644 --- a/README.md +++ b/README.md @@ -90,10 +90,16 @@ xelatex {your-cv}.tex Or using docker: ```bash -docker run --rm --user $(id -u):$(id -g) -i -w "/doc" -v "$PWD":/doc texlive/texlive:latest make +IMAGE_NAME="texlive-with-fonts" + +# Build Docker image if needed +docker build -t "$IMAGE_NAME" . + +# Compile all +docker run --rm --user "$(id -u):$(id -g)" -i -w "/doc" -v "$PWD":/doc "$IMAGE_NAME:latest" make ``` -In either case, this should result in the creation of ``{your-cv}.pdf`` +In either case, this should result in the creation of `{your-cv}.pdf`. ## Credit