pipeline changes , preparing to dockerize and fully automate on build machine etc
This commit is contained in:
68
Dockerfile
68
Dockerfile
@@ -1,34 +1,34 @@
|
||||
# Use a base image with Pandoc and LaTeX
|
||||
FROM ubuntu:24.04
|
||||
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install additional dependencies
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
bash \
|
||||
pandoc \
|
||||
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
|
||||
|
||||
# Set volumes for environment, input and output
|
||||
VOLUME ["/env", "/ResumeInput", "/ResumeOutput"]
|
||||
|
||||
# Set the default command to execute the client script
|
||||
CMD ["/app/build-pipeline-client-markdown.sh"]
|
||||
# Use a base image with Pandoc and LaTeX
|
||||
FROM ubuntu:24.04
|
||||
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install additional dependencies
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
bash \
|
||||
pandoc \
|
||||
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
|
||||
|
||||
# Set volumes for environment, input and output
|
||||
VOLUME ["/env", "/ResumeInput", "/ResumeOutput"]
|
||||
|
||||
# Set the default command to execute the client script
|
||||
CMD ["/app/build-pipeline-client-markdown.sh"]
|
||||
|
Reference in New Issue
Block a user