diff --git a/Dockerfile b/Dockerfile index e96b11a..b5d24d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # Use a base image with Pandoc and LaTeX -FROM pandoc/latex:latest +FROM ubuntu:24.04 + # Set working directory WORKDIR /app @@ -8,6 +9,7 @@ WORKDIR /app RUN apt-get update && \ apt-get install -y \ bash \ + pandoc \ git \ && rm -rf /var/lib/apt/lists/* diff --git a/build/build-pipeline-client-markdown.sh b/build/build-pipeline-client-markdown.sh index 3e59fa6..c1ac12e 100644 --- a/build/build-pipeline-client-markdown.sh +++ b/build/build-pipeline-client-markdown.sh @@ -5,9 +5,9 @@ set -euo pipefail IFS=$'\n\t' # Check if the environment variables file exists -ENV_FILE="/env/CandidateVariables.env" +ENV_FILE="/env/ResumeVariables.env" if [[ ! -f "$ENV_FILE" ]]; then - echo "Error: Environment variables file not found at $ENV_FILE" + echo "Error: Inside script: Environment variables file not found at $ENV_FILE" exit 1 fi diff --git a/env/CandidateVariables.env b/env/ResumeVariables.env similarity index 100% rename from env/CandidateVariables.env rename to env/ResumeVariables.env diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..83b9f3c --- /dev/null +++ b/run.sh @@ -0,0 +1,5 @@ +docker run --rm \ + -v "./env/ResumeVariables.env:/env/ResumeVariables.env:ro" \ + -v "./Resume-Input:/Resume-Input" \ + -v "./Resume-Output:/Resume-Output" \ + markdown-pipeline-client:latest \ No newline at end of file