-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerFile.office
More file actions
66 lines (54 loc) · 2.27 KB
/
Copy pathDockerFile.office
File metadata and controls
66 lines (54 loc) · 2.27 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
FROM agent-python
ARG BUILD_TIME=""
USER root
# --- Office tooling and Python libs ---
RUN apk add --no-cache \
ca-certificates openssh-client \
npm \
fd \
build-base python3-dev musl-dev \
fontconfig ttf-dejavu \
freetype libpng jpeg zlib \
py3-numpy py3-pandas py3-matplotlib py3-pytest \
py3-pypdf py3-pdfminer \
py3-reportlab py3-pillow py3-openpyxl py3-xlsxwriter \
poppler-utils tesseract-ocr qpdf ghostscript pandoc-cli
# --- PPTX generator ---
RUN npm install -g pptxgenjs \
--omit=dev \
--no-fund \
--no-audit \
&& npm cache clean --force
# Ensure global node modules resolve in scripts
ENV NODE_PATH=/usr/lib/node_modules:/usr/local/lib/node_modules
RUN printf '%s\n' \
'export NODE_PATH=/usr/lib/node_modules:/usr/local/lib/node_modules' \
> /etc/profile.d/node_path.sh
# Baseline extra pip packages you want available
RUN "$VIRTUAL_ENV/bin/pip" install --no-cache-dir \
python-docx python-pptx xlrd pdfplumber \
&& chown -R coder:coder "$VIRTUAL_ENV"
RUN BUILD_TIME="${BUILD_TIME:-$(date -u +%Y-%m-%dT%H:%M:%SZ)}" \
&& cat > /etc/agentctl/image.md <<EOF
You are running inside the \`agent-office\` image.
Environment:
- containerized Alpine Linux (package manager \`apk\`)
- running as the non-root user \`coder\`
- shared host workspace at \`/workdir\`
- architecture: check with \`uname -m\` if needed
Image metadata:
- image: \`agent-office\`
- built_at_utc: \`${BUILD_TIME}\`
Built-in CLI tools:
- base tools: \`bash\`, \`zsh\`, \`git\`, \`curl\`, \`file\`, \`jq\`, \`rg\`, \`fd\`, \`bwrap\`
- programming tools: \`node\`, \`npm\`, \`python3\`, \`python\`, \`pip\`
- office / document generation/analysis: \`pandoc\`, \`tesseract\`, \`qpdf\`, \`ghostscript\`, Poppler utilities such as \`pdftotext\`
Programming environments and major libraries:
- Node.js with npm and global \`pptxgenjs\`
- Python 3 with \`/opt/venv\` on \`PATH\`
- document, spreadsheet, and PDF libraries including \`python-docx\`, \`python-pptx\`, \`openpyxl\`, \`xlsxwriter\`, \`pdfplumber\`, \`PyPDF\`, \`pandas\`, \`numpy\`, \`matplotlib\`, and \`reportlab\`
Use this image for document conversion, PDF analysis, spreadsheet work, OCR, and report generation.
EOF
RUN ln -sf /etc/agentctl/image.md /home/coder/.codex/AGENTS.md
USER coder
WORKDIR /workdir