more docker stuff

This commit is contained in:
2025-01-09 16:24:09 -06:00
parent 9df463bd32
commit adf312df78
4 changed files with 10 additions and 3 deletions

View File

@ -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/*

View File

@ -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

5
run.sh Normal file
View File

@ -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