Skip to content

Commit

Permalink
Build resume components
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonbeck committed Sep 15, 2023
1 parent bf77c5d commit cb15df4
Show file tree
Hide file tree
Showing 52 changed files with 6,562 additions and 2,445 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:14

ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:/home/node/.npm-global/bin

USER node

RUN npm install -g resume-cli@latest
COPY entrypoint.sh /entrypoint.sh

USER root
ENTRYPOINT ["/entrypoint.sh"]
13 changes: 13 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh -l

THEME=compact
RESUME=./src/lib/data/resume.json
OUTPUT=./src/lib/assets/resume.pdf

THEME_PACKAGE=jsonresume-theme-${THEME}
echo "Installing theme: ${THEME}"

# NOTE: this needs to be installed locally, not globally
npm install ${THEME_PACKAGE}

resume export --resume ${RESUME} --theme ${THEME} --format pdf ${OUTPUT}
Loading

0 comments on commit cb15df4

Please sign in to comment.