2025-01-09 20:54:08 +00:00
|
|
|
# Use a base image with Pandoc and LaTeX
|
2025-01-09 22:24:09 +00:00
|
|
|
FROM ubuntu:24.04
|
|
|
|
|
2025-01-09 20:54:08 +00:00
|
|
|
|
|
|
|
# Set working directory
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# Install additional dependencies
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y \
|
|
|
|
bash \
|
2025-01-09 22:24:09 +00:00
|
|
|
pandoc \
|
2025-01-09 20:54:08 +00:00
|
|
|
git \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Copy the client script into the container
|
|
|
|
COPY build/build-pipeline-client-markdown.sh /app/
|
|
|
|
|
|
|
|
# Make the client script executable
|
|
|
|
RUN chmod +x /app/build-pipeline-client-markdown.sh
|
|
|
|
|
|
|
|
# Clone the necessary repositories for 'mo' utility and server script
|
|
|
|
RUN git clone https://git.knownelement.com/ExternalVendorCode/mo.git /app/vendor/mo && \
|
|
|
|
git clone https://git.knownelement.com/reachableceo/MarkdownResume-Pipeline.git /app/vendor/MarkdownResume-Pipeline
|
|
|
|
|
|
|
|
# Set environment variables for script execution
|
|
|
|
ENV MO_PATH=/app/vendor/mo/mo
|
|
|
|
ENV PIPELINE_SERVER_SCRIPT=/app/vendor/MarkdownResume-Pipeline/build/build-pipeline-server-markdown.sh
|
|
|
|
|
2025-01-09 21:20:37 +00:00
|
|
|
# Set volumes for environment, input and output
|
|
|
|
VOLUME ["/env", "/ResumeInput", "/ResumeOutput"]
|
2025-01-09 20:54:08 +00:00
|
|
|
|
|
|
|
# Set the default command to execute the client script
|
|
|
|
CMD ["/app/build-pipeline-client-markdown.sh"]
|