forked from redhat-community-ai-tools/code-to-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (34 loc) · 1.4 KB
/
Copy pathDockerfile
File metadata and controls
45 lines (34 loc) · 1.4 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
FROM registry.access.redhat.com/ubi10/python-312-minimal:latest
# Switch to root user for package installation
USER root
# Install system dependencies
RUN microdnf install -y git jq nodejs npm tar && microdnf clean all
# Install GitHub CLI
RUN curl -fsSL https://cli.github.com/packages/rpm/gh-cli.repo | tee /etc/yum.repos.d/github-cli.repo \
&& microdnf install -y gh && microdnf clean all
# Install Google Workspace CLI (for fetching Google Docs)
RUN npm install -g @googleworkspace/cli
# Install uv (Python package runner, needed for mcp-atlassian)
RUN pip install --no-cache-dir -U uv
# Install Python dependencies
RUN pip install --no-cache-dir -U openai mcp mcp-atlassian
# Set up working directory
WORKDIR /app
# Copy the source files
COPY src/config.py /app/config.py
COPY src/github_ops.py /app/github_ops.py
COPY src/discovery.py /app/discovery.py
COPY src/generation.py /app/generation.py
COPY src/comments.py /app/comments.py
COPY src/suggest_docs.py /app/suggest_docs.py
COPY src/security_utils.py /app/security_utils.py
COPY src/doc_index.py /app/doc_index.py
COPY src/jira_integration.py /app/jira_integration.py
COPY src/utils.py /app/utils.py
# Copy entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Set git config for commits
RUN git config --global user.email "action@github.com" && \
git config --global user.name "GitHub Action"
ENTRYPOINT ["/entrypoint.sh"]