forked from greenelab/repository_analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (35 loc) · 1.39 KB
/
Dockerfile
File metadata and controls
42 lines (35 loc) · 1.39 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
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# System deps
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl git openssh-client \
libcairo2 \
libpango-1.0-0 libpangocairo-1.0-0 \
libgdk-pixbuf-2.0-0 \
libffi8 libglib2.0-0 \
shared-mime-info \
fonts-dejavu fonts-liberation \
pandoc \
nodejs npm \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g @github/copilot
# GitHub CLI
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
| dd of=/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" \
> /etc/apt/sources.list.d/github-cli.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends gh \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt
COPY . /app
# Select pipeline: agentbased (default) or chatbased
ARG PIPELINE=agentbased
ENV PIPELINE=${PIPELINE}
CMD if [ "${PIPELINE}" = "agentbased" ]; then bash agentic/full.sh; \
elif [ "${PIPELINE}" = "chatbased" ]; then bash src/full.sh; \
else echo "[err] Unknown PIPELINE value: ${PIPELINE}. Use 'agentbased' or 'chatbased'."; exit 1; \
fi