Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (37 loc) · 1.34 KB
/
Copy pathDockerfile
File metadata and controls
43 lines (37 loc) · 1.34 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
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
jq \
ripgrep \
ca-certificates \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install GitHub CLI (needed for GitHub VCS posting)
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
| dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
| tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt-get update && apt-get install -y --no-install-recommends gh \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir \
openai \
"azure-devops==7.1.0b4" \
"pydantic>=2.0" \
"pydantic-settings>=2.0" \
msrest \
jsonschema \
"code-review-graph @ git+https://github.com/tirth8205/code-review-graph.git@v2.3.2"
# Copy application code
COPY src/ /app/src/
COPY commands/ /app/commands/
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
# Environment
ENV PYTHONPATH=/app/src
ENV APP_DIR=/app
WORKDIR /workspace
ENTRYPOINT ["/app/entrypoint.sh"]