-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (42 loc) · 1.66 KB
/
Dockerfile
File metadata and controls
54 lines (42 loc) · 1.66 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
# syntax=docker/dockerfile:1.7
ARG PYTHON_VERSION=3.11
FROM python:3.11-slim@sha256:9358444059ed78e2975ada2c189f1c1a3144a5dab6f35bff8c981afb38946634 AS base
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ENV DEBIAN_FRONTEND=noninteractive \
PIP_NO_CACHE_DIR=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
NODE_MAJOR=22
WORKDIR /workspace
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bash \
build-essential \
ca-certificates \
curl \
git \
&& curl -fsSL "https://deb.nodesource.com/setup_${NODE_MAJOR}.x" | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& python -m pip install --upgrade pip==24.3.1 setuptools==75.8.0 wheel==0.45.1 \
&& rm -rf /var/lib/apt/lists/*
FROM base AS dev
COPY . /workspace
# Install local packages (Scorecard: pinned via pyproject.toml)
# Requirements file dependencies have version constraints
RUN python -m pip install --no-cache-dir \
-e "packages/agent-os[full,dev]" \
-e "packages/agent-mesh[agent-os,dev,server]" \
-e "packages/agent-hypervisor[api,dev,nexus]" \
-e "packages/agent-runtime" \
-e "packages/agent-sre[api,dev]" \
-e "packages/agent-compliance" \
-e "packages/agent-marketplace[cli,dev]" \
-e "packages/agent-lightning[agent-os,dev]" \
&& python -m pip install --no-cache-dir \
-r packages/agent-hypervisor/examples/dashboard/requirements.txt \
&& cd /workspace/packages/agent-mesh/sdks/typescript \
&& npm ci
ENTRYPOINT ["bash", "/workspace/scripts/docker/dev-entrypoint.sh"]
CMD ["sleep", "infinity"]
FROM dev AS test
CMD ["pytest"]