-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (29 loc) · 1.31 KB
/
Dockerfile
File metadata and controls
39 lines (29 loc) · 1.31 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
FROM ubuntu:24.04
RUN apt-get update && apt-get install -y \
git curl jq nodejs npm openssh-client python3 python3-pip python3-venv \
&& rm -rf /var/lib/apt/lists/*
ARG CLAUDE_CODE_VERSION=latest
RUN npm install -g @anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}
RUN npm install -g @openai/codex
RUN npm install -g opencode-ai
RUN curl -sL https://github.com/git-bug/git-bug/releases/latest/download/git-bug_linux_amd64 \
-o /usr/local/bin/git-bug && chmod +x /usr/local/bin/git-bug
COPY requirements.txt /opt/nightshift/
RUN pip install --break-system-packages -r /opt/nightshift/requirements.txt
RUN pip install --break-system-packages 'litellm[proxy]'
RUN pip install --break-system-packages 'openhands==1.13.1' python-frontmatter
COPY core/ /opt/nightshift/core/
COPY adapters/ /opt/nightshift/adapters/
COPY entrypoint.py /opt/nightshift/
COPY overflow-proxy.py /opt/nightshift/
COPY openhands-launcher.py /opt/nightshift/
COPY docker-entrypoint.sh /opt/nightshift/
COPY nightshift-mcp-server.py /opt/nightshift/
COPY mcp-config.json /opt/nightshift/
RUN useradd -m -s /bin/bash agent && \
chmod +x /opt/nightshift/docker-entrypoint.sh
ENV PYTHONPATH=/opt/nightshift
USER agent
RUN git config --global --add safe.directory /workspace
WORKDIR /workspace
ENTRYPOINT ["/opt/nightshift/docker-entrypoint.sh"]