-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
70 lines (58 loc) · 1.67 KB
/
Dockerfile
File metadata and controls
70 lines (58 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Resume Processing Pipeline Docker Image
# Contains: Python3, Pandoc, PDFLaTeX, and all dependencies
FROM ubuntu:22.04
# Avoid interactive prompts during build
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC
# Install system dependencies
RUN apt-get update && apt-get install -y \
# Core tools
python3 \
python3-pip \
git \
curl \
wget \
# LaTeX and PDF generation
texlive-latex-base \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
# Pandoc for markdown conversion
pandoc \
# Additional utilities
make \
zip \
unzip \
# Clean up
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /workspace
# Copy Python requirements if needed
COPY requirements.txt* ./
# Install Python dependencies
RUN pip3 install --no-cache-dir \
# Core Python packages
requests \
pyyaml \
jinja2 \
markupsafe \
# Install from requirements.txt if it exists
&& if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi
# Create directory structure
RUN mkdir -p /workspace/{input,output,scripts,templates}
# Copy processing scripts
COPY linkedin_template_generator.py /workspace/scripts/
COPY process_resume.sh /workspace/scripts/
# Make scripts executable
RUN chmod +x /workspace/scripts/*.sh /workspace/scripts/*.py
# Set PATH to include scripts
ENV PATH="/workspace/scripts:${PATH}"
# Default command
CMD ["bash"]
# Labels for metadata
LABEL maintainer="Open Systems Lab <info@opensystemslab.com>"
LABEL description="Resume processing pipeline with LaTeX, Pandoc, and Python tools"
LABEL version="1.0"