mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2026-02-22 21:05:47 +08:00
Fix local build instructions using Docker
Add Dockerfile matching GitHub workflow
This commit is contained in:
parent
0d10e2e40a
commit
c5c3d72285
2 changed files with 16 additions and 2 deletions
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
|
@ -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
|
||||
10
README.md
10
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue